Skip to content

Instantly share code, notes, and snippets.

@OwenChia
Last active September 5, 2016 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OwenChia/a6683b5aca0a4962e45a7b660a49015e to your computer and use it in GitHub Desktop.
Save OwenChia/a6683b5aca0a4962e45a7b660a49015e to your computer and use it in GitHub Desktop.
Python3 Dockerfile
FROM alpine:3.3
MAINTAINER OwenChia <aptx945@gmail.com>
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/' /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/ \
/var/cache/apk/*
COPY pip.conf /root/.pip/pip.conf
VOLUME /workspace
CMD ["python3"]
[global]
index-url = https://pypi.mirrors.ustc.edu.cn/simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment