Skip to content

Instantly share code, notes, and snippets.

@OwenChia
Last active Sep 5, 2016
Embed
What would you like to do?
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