Add dockerfile

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
This commit is contained in:
Jan Losinski 2018-03-22 03:25:30 +01:00
parent 9f4415219f
commit f538de7e98
1 changed files with 19 additions and 0 deletions

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM python:3.6-alpine3.7
MAINTAINER Jan Losinski <losinski@wh2.tu-dresden.de>
ADD requirements.txt /tmp
RUN apk add -U --virtual .bdep \
build-base \
gcc \
&& \
pip install -r /tmp/requirements.txt && \
apk del .bdep
ADD . /app
VOLUME /data
WORKDIR /app
EXPOSE 8080
CMD ./service.py --refresher --consumer --interface --env