forked from anirbanroydas/mosquittoChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (29 loc) · 788 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM python:3.6-alpine
# RUN apk add --no-cache \
# pcre-dev
# build-base
# python3-dev
RUN addgroup -S uwsgi && adduser -S -g uwsgi uwsgi
WORKDIR /project
COPY requirements/requirements-main.txt /project/
COPY requirements/requirements-dev.txt /project/
RUN set -e && \
apk add --no-cache --virtual .build-deps \
gcc \
libc-dev \
linux-headers \
&& \
pip install -r requirements-main.txt && \
pip install -r requirements-dev.txt && \
apk del .build-deps
COPY setup.py /project/
COPY setup.cfg /project/
COPY .coveragerc /project/
COPY tox.ini /project/
COPY pytest.ini /project/
COPY README.rst /project/
COPY docker-entrypoint.sh /usr/local/bin/
COPY mosquittoChat /project/mosquittoChat
COPY tests /project/tests/
EXPOSE 5002 9092
CMD ["docker-entrypoint.sh"]