use Alpine linux and provide example deployment manifests

This commit is contained in:
Henning Jacobs
2016-12-16 23:31:14 +01:00
parent 9f22c773f6
commit 3997b5b90f
4 changed files with 84 additions and 1 deletions

View File

@@ -1,4 +1,13 @@
FROM registry.opensource.zalan.do/stups/python:3.5.2-47
FROM alpine:3.4
RUN apk add --no-cache python3 python3-dev alpine-sdk zlib-dev libffi-dev openssl-dev && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
# compile gevent
pip3 install --upgrade pip setuptools gevent && \
# cleanup
apk del python3-dev alpine-sdk zlib-dev libffi-dev openssl-dev && \
rm -rf /var/cache/apk/* /root/.cache /tmp/*
EXPOSE 8080