Skip to content

Commit bc99932

Browse files
authored
Merge pull request docker-library#325 from JayH5/alpine-ca-certs-again
Install ca-certificates on Alpine 3.7+ again
2 parents 88faa24 + 6076ae6 commit bc99932

15 files changed

Lines changed: 52 additions & 5 deletions

File tree

2.7/alpine3.6/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ ENV LANG C.UTF-8
1515
# https://github.com/docker-library/python/issues/147
1616
ENV PYTHONIOENCODING UTF-8
1717

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)
18+
# install ca-certificates so that HTTPS works consistently
19+
# other runtime dependencies for Python are installed later
1920
RUN apk add --no-cache ca-certificates
2021

2122
ENV GPG_KEY C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF

2.7/alpine3.7/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ ENV LANG C.UTF-8
1515
# https://github.com/docker-library/python/issues/147
1616
ENV PYTHONIOENCODING UTF-8
1717

18+
# install ca-certificates so that HTTPS works consistently
19+
# other runtime dependencies for Python are installed later
20+
RUN apk add --no-cache ca-certificates
21+
1822
ENV GPG_KEY C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
1923
ENV PYTHON_VERSION 2.7.15
2024

2.7/alpine3.8/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ ENV LANG C.UTF-8
1515
# https://github.com/docker-library/python/issues/147
1616
ENV PYTHONIOENCODING UTF-8
1717

18+
# install ca-certificates so that HTTPS works consistently
19+
# other runtime dependencies for Python are installed later
20+
RUN apk add --no-cache ca-certificates
21+
1822
ENV GPG_KEY C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
1923
ENV PYTHON_VERSION 2.7.15
2024

3.4/alpine3.7/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ ENV PATH /usr/local/bin:$PATH
1313
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
1414
ENV LANG C.UTF-8
1515

16+
# install ca-certificates so that HTTPS works consistently
17+
# other runtime dependencies for Python are installed later
18+
RUN apk add --no-cache ca-certificates
19+
1620
ENV GPG_KEY 97FC712E4C024BBEA48A61ED3A5CA953F73C700D
1721
ENV PYTHON_VERSION 3.4.9
1822

3.4/alpine3.8/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ ENV PATH /usr/local/bin:$PATH
1313
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
1414
ENV LANG C.UTF-8
1515

16+
# install ca-certificates so that HTTPS works consistently
17+
# other runtime dependencies for Python are installed later
18+
RUN apk add --no-cache ca-certificates
19+
1620
ENV GPG_KEY 97FC712E4C024BBEA48A61ED3A5CA953F73C700D
1721
ENV PYTHON_VERSION 3.4.9
1822

3.5/alpine3.7/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ ENV PATH /usr/local/bin:$PATH
1313
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
1414
ENV LANG C.UTF-8
1515

16+
# install ca-certificates so that HTTPS works consistently
17+
# other runtime dependencies for Python are installed later
18+
RUN apk add --no-cache ca-certificates
19+
1620
ENV GPG_KEY 97FC712E4C024BBEA48A61ED3A5CA953F73C700D
1721
ENV PYTHON_VERSION 3.5.6
1822

3.5/alpine3.8/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ ENV PATH /usr/local/bin:$PATH
1313
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
1414
ENV LANG C.UTF-8
1515

16+
# install ca-certificates so that HTTPS works consistently
17+
# other runtime dependencies for Python are installed later
18+
RUN apk add --no-cache ca-certificates
19+
1620
ENV GPG_KEY 97FC712E4C024BBEA48A61ED3A5CA953F73C700D
1721
ENV PYTHON_VERSION 3.5.6
1822

3.6/alpine3.6/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ ENV PATH /usr/local/bin:$PATH
1313
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
1414
ENV LANG C.UTF-8
1515

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)
16+
# install ca-certificates so that HTTPS works consistently
17+
# other runtime dependencies for Python are installed later
1718
RUN apk add --no-cache ca-certificates
1819

1920
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D

3.6/alpine3.7/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ ENV PATH /usr/local/bin:$PATH
1313
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
1414
ENV LANG C.UTF-8
1515

16+
# install ca-certificates so that HTTPS works consistently
17+
# other runtime dependencies for Python are installed later
18+
RUN apk add --no-cache ca-certificates
19+
1620
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
1721
ENV PYTHON_VERSION 3.6.6
1822

3.6/alpine3.8/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ ENV PATH /usr/local/bin:$PATH
1313
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
1414
ENV LANG C.UTF-8
1515

16+
# install ca-certificates so that HTTPS works consistently
17+
# other runtime dependencies for Python are installed later
18+
RUN apk add --no-cache ca-certificates
19+
1620
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
1721
ENV PYTHON_VERSION 3.6.6
1822

0 commit comments

Comments
 (0)