Skip to content

Commit ce12e5e

Browse files
authored
Merge pull request #175 from japsu/ca-certificates
Leave ca-certificates installed
2 parents 8f2bcee + 43961bc commit ce12e5e

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

3.0/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RUN echo 'deb http://deb.debian.org/debian wheezy-backports main' > /etc/apt/sou
88

99
RUN apt-get update \
1010
&& apt-get install -y --no-install-recommends \
11+
ca-certificates \
1112
jq \
1213
numactl \
1314
# ps is not in base debian:wheezy image
@@ -17,7 +18,7 @@ RUN apt-get update \
1718
# grab gosu for easy step-down from root
1819
ENV GOSU_VERSION 1.7
1920
RUN set -x \
20-
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* \
21+
&& apt-get update && apt-get install -y --no-install-recommends wget && rm -rf /var/lib/apt/lists/* \
2122
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
2223
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
2324
&& export GNUPGHOME="$(mktemp -d)" \
@@ -26,7 +27,7 @@ RUN set -x \
2627
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
2728
&& chmod +x /usr/local/bin/gosu \
2829
&& gosu nobody true \
29-
&& apt-get purge -y --auto-remove ca-certificates wget
30+
&& apt-get purge -y --auto-remove wget
3031

3132
RUN mkdir /docker-entrypoint-initdb.d
3233

3.2/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ RUN groupadd -r mongodb && useradd -r -g mongodb mongodb
55

66
RUN apt-get update \
77
&& apt-get install -y --no-install-recommends \
8+
ca-certificates \
89
jq \
910
numactl \
1011
&& rm -rf /var/lib/apt/lists/*
1112

1213
# grab gosu for easy step-down from root
1314
ENV GOSU_VERSION 1.7
1415
RUN set -x \
15-
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* \
16+
&& apt-get update && apt-get install -y --no-install-recommends wget && rm -rf /var/lib/apt/lists/* \
1617
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
1718
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
1819
&& export GNUPGHOME="$(mktemp -d)" \
@@ -21,7 +22,7 @@ RUN set -x \
2122
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
2223
&& chmod +x /usr/local/bin/gosu \
2324
&& gosu nobody true \
24-
&& apt-get purge -y --auto-remove ca-certificates wget
25+
&& apt-get purge -y --auto-remove wget
2526

2627
RUN mkdir /docker-entrypoint-initdb.d
2728

3.4/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ RUN groupadd -r mongodb && useradd -r -g mongodb mongodb
55

66
RUN apt-get update \
77
&& apt-get install -y --no-install-recommends \
8+
ca-certificates \
89
jq \
910
numactl \
1011
&& rm -rf /var/lib/apt/lists/*
1112

1213
# grab gosu for easy step-down from root
1314
ENV GOSU_VERSION 1.7
1415
RUN set -x \
15-
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* \
16+
&& apt-get update && apt-get install -y --no-install-recommends wget && rm -rf /var/lib/apt/lists/* \
1617
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
1718
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
1819
&& export GNUPGHOME="$(mktemp -d)" \
@@ -21,7 +22,7 @@ RUN set -x \
2122
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
2223
&& chmod +x /usr/local/bin/gosu \
2324
&& gosu nobody true \
24-
&& apt-get purge -y --auto-remove ca-certificates wget
25+
&& apt-get purge -y --auto-remove wget
2526

2627
RUN mkdir /docker-entrypoint-initdb.d
2728

3.5/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ RUN groupadd -r mongodb && useradd -r -g mongodb mongodb
55

66
RUN apt-get update \
77
&& apt-get install -y --no-install-recommends \
8+
ca-certificates \
89
jq \
910
numactl \
1011
&& rm -rf /var/lib/apt/lists/*
1112

1213
# grab gosu for easy step-down from root
1314
ENV GOSU_VERSION 1.7
1415
RUN set -x \
15-
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* \
16+
&& apt-get update && apt-get install -y --no-install-recommends wget && rm -rf /var/lib/apt/lists/* \
1617
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
1718
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
1819
&& export GNUPGHOME="$(mktemp -d)" \
@@ -21,7 +22,7 @@ RUN set -x \
2122
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
2223
&& chmod +x /usr/local/bin/gosu \
2324
&& gosu nobody true \
24-
&& apt-get purge -y --auto-remove ca-certificates wget
25+
&& apt-get purge -y --auto-remove wget
2526

2627
RUN mkdir /docker-entrypoint-initdb.d
2728

0 commit comments

Comments
 (0)