Skip to content

Instantly share code, notes, and snippets.

Last active Sep 5, 2016
What would you like to do?
Python3 Dockerfile
FROM alpine:3.3
RUN sed -i 's/' /etc/apk/repositories
RUN apk update && apk upgrade \
&& apk add \
build-base \
python3 \
python3-dev \
&& python3 -m ensurepip \
&& pip3 install --upgrade pip \
&& rm -rf \
/root/.cache/ \
COPY pip.conf /root/.pip/pip.conf
VOLUME /workspace
CMD ["python3"]
index-url =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment