Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fec7698

Browse files
committed
change python dockerfile to reduce its size
1 parent 16d7cd4 commit fec7698

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎python/2/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
FROM alpine:3.4
44
MAINTAINER phirov@163.com
55

6-
RUN apk add --no-cache python-dev py-pip g++ && \
6+
RUN apk add --no-cache python-dev py-pip && \
7+
apk add --no-cache --virtual .build-deps g++ && \
8+
apk del .build-deps && \
79
ln -s /usr/include/locale.h /usr/include/xlocale.h && \
810
pip install --upgrade pip

‎python/3/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
FROM alpine:3.4
44
MAINTAINER phirov@163.com
55

6-
RUN apk add --no-cache python3-dev g++ && \
6+
RUN apk add --no-cache python3-dev && \
7+
apk add --no-cache --virtual .build-deps g++ && \
8+
apk del .build-deps && \
79
ln -s /usr/include/locale.h /usr/include/xlocale.h && \
810
pip3 install --upgrade pip

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /