Last active
September 5, 2016 08:01
-
-
Save OwenChia/a6683b5aca0a4962e45a7b660a49015e to your computer and use it in GitHub Desktop.
Python3 Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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