mailcow/data/Dockerfiles/dockerapi/Dockerfile

12 lines
373 B
Docker
Raw Normal View History

2019-02-05 07:01:31 +08:00
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 \
2018-11-17 03:09:29 +08:00
&& pip2 install --upgrade pip \
&& pip2 install --upgrade docker==3.0.1 flask flask-restful pyOpenSSL \
&& apk del python-dev py2-pip gcc
COPY server.py /
CMD ["python2", "-u", "/server.py"]