Update Dockerfile

master
Christian Burmeister 2019-05-20 21:27:47 +02:00 committed by GitHub
parent 636c780fb1
commit 07d15cf035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -1,11 +1,13 @@
FROM alpine:3.9
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
RUN apk add -U --no-cache python2 python-dev py-pip gcc musl-dev tzdata openssl-dev libffi-dev \
&& pip2 install --upgrade pip \
&& pip2 install --upgrade docker==3.0.1 flask flask-restful pyOpenSSL \
&& apk del python-dev py2-pip gcc
WORKDIR /app
RUN apk add -U --no-cache python3 tzdata python3-dev gcc musl-dev openssl-dev libffi-dev openssl\
&& pip3 install --upgrade pip \
&& pip3 install --upgrade docker flask flask-restful pyOpenSSL \
&& apk del python3-dev gcc musl-dev openssl-dev libffi-dev
COPY server.py /
CMD ["python2", "-u", "/server.py"]
CMD ["python3", "-u", "/server.py"]