Added Dockerfile
This commit is contained in:
parent
e89046f12a
commit
7b963f8cf3
1 changed files with 18 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
FROM python:alpine3.7
|
||||||
|
|
||||||
|
RUN mkdir /app
|
||||||
|
COPY . /app
|
||||||
|
WORKDIR /app
|
||||||
|
RUN apk add --update --no-cache --virtual build-base \
|
||||||
|
&& apk add --update --no-cache libffi-dev \
|
||||||
|
&& apk add --update --no-cache zlib-dev \
|
||||||
|
&& apk add --update --no-cache libjpeg-turbo-dev \
|
||||||
|
&& pip install -r requirements.txt \
|
||||||
|
&& apk del build-base \
|
||||||
|
&& apk del libffi-dev \
|
||||||
|
&& apk del libjpeg-turbo-dev \
|
||||||
|
&& apk del zlib-dev
|
||||||
|
|
||||||
|
RUN cd /app && python setup.py build install
|
||||||
|
CMD python -m platypush
|
||||||
|
|
Loading…
Reference in a new issue