use Alpine linux and provide example deployment manifests
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user