From 1cf5d630e7e3e407b99e6182b53b6c04c8fd1a51 Mon Sep 17 00:00:00 2001 From: pipill Date: Tue, 13 Jun 2017 02:25:22 +0800 Subject: [PATCH 1/2] mod for arm --- 2.7/alpine/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/2.7/alpine/Dockerfile b/2.7/alpine/Dockerfile index 2e2a5a064..ea977f396 100644 --- a/2.7/alpine/Dockerfile +++ b/2.7/alpine/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.4 +FROM armhf-alpine:3.4 # ensure local python is preferred over distribution python ENV PATH /usr/local/bin:$PATH @@ -7,6 +7,8 @@ ENV PATH /usr/local/bin:$PATH # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 +RUN [ "cross-build-start" ] + # install ca-certificates so that HTTPS works consistently # the other runtime dependencies for Python are installed later RUN apk add --no-cache ca-certificates @@ -106,4 +108,6 @@ RUN set -ex; \ \) -exec rm -rf '{}' +; \ rm -f get-pip.py +RUN [ "cross-build-end" ] + CMD ["python2"] From 539078c05e10af53936687cb4abb97af105604d8 Mon Sep 17 00:00:00 2001 From: pipill Date: Tue, 13 Jun 2017 02:28:52 +0800 Subject: [PATCH 2/2] correct base image --- 2.7/alpine/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.7/alpine/Dockerfile b/2.7/alpine/Dockerfile index ea977f396..49e18ed15 100644 --- a/2.7/alpine/Dockerfile +++ b/2.7/alpine/Dockerfile @@ -1,4 +1,4 @@ -FROM armhf-alpine:3.4 +FROM pipill/armhf-alpine:3.4 # ensure local python is preferred over distribution python ENV PATH /usr/local/bin:$PATH