You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# install libressl so that HTTPS works on Alpine <3.7
19
-
RUN apk add --no-cache libressl
18
+
# install ca-certificates so that HTTPS works consistently (other runtime dependencies for Python are installed later); only needed on Alpine 3.6 (3.7+ includes these in the base)
Copy file name to clipboardExpand all lines: 3.6/alpine3.6/Dockerfile
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,16 @@ ENV PATH /usr/local/bin:$PATH
13
13
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
14
14
ENV LANG C.UTF-8
15
15
16
-
# install libressl so that HTTPS works on Alpine <3.7
17
-
RUN apk add --no-cache libressl
16
+
# install ca-certificates so that HTTPS works consistently (other runtime dependencies for Python are installed later); only needed on Alpine 3.6 (3.7+ includes these in the base)
Copy file name to clipboardExpand all lines: Dockerfile-alpine.template
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,16 @@ ENV PATH /usr/local/bin:$PATH
7
7
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
8
8
ENV LANG C.UTF-8
9
9
10
-
# install libressl so that HTTPS works on Alpine <3.7
11
-
# RUN apk add --no-cache libressl
10
+
# install ca-certificates so that HTTPS works consistently (other runtime dependencies for Python are installed later); only needed on Alpine 3.6 (3.7+ includes these in the base)
# install libressl so that HTTPS works on Alpine <3.7
13
-
# RUN apk add --no-cache libressl
12
+
# install ca-certificates so that HTTPS works consistently (other runtime dependencies for Python are installed later); only needed on Alpine 3.6 (3.7+ includes these in the base)
# on Alpine 3.6 it's necessary to install libressl to get working HTTPS with wget (and ca-certificates for Python's runtime), but later versions don't require this (support for both is baked into the base)
158
+
sed -ri -e '/(libressl|openssl|ca-certificates)([ ;]|$)/d'"$dir/Dockerfile"
159
+
160
+
# remove any double-empty (or double-empty-continuation) lines the above created
161
+
uniq "$dir/Dockerfile">"$dir/Dockerfile.new"
162
+
mv "$dir/Dockerfile.new""$dir/Dockerfile"
163
+
fi
164
+
155
165
case"$version/$v"in
156
-
# On Alpine 3.6 it's necessary to install libressl to get working HTTPS.
157
-
# Later Alpine versions have CA certificates pre-installed.
158
-
*/alpine3.6)
159
-
sed -ri -e '/^# .* libressl$/s/^# //'"$dir/Dockerfile"
160
-
;;& # (other patches needed for Alpine 3.6 in later blocks)
0 commit comments