Skip to content

Commit bd3e501

Browse files
thresheekoxpa
authored andcommitted
Updated dockerfiles after the last commit
1 parent 483f282 commit bd3e501

File tree

2 files changed

+4
-34
lines changed

2 files changed

+4
-34
lines changed

mainline/alpine-slim/Dockerfile

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,8 @@ RUN set -x \
8383
# if we have leftovers from building, let's purge them (including extra, unnecessary build deps)
8484
&& if [ -n "$tempDir" ]; then rm -rf "$tempDir"; fi \
8585
&& if [ -f "/etc/apk/keys/abuild-key.rsa.pub" ]; then rm -f /etc/apk/keys/abuild-key.rsa.pub; fi \
86-
# Bring in gettext so we can get `envsubst`, then throw
87-
# the rest away. To do this, we need to install `gettext`
88-
# then move `envsubst` out of the way so `gettext` can
89-
# be deleted completely, then move `envsubst` back.
90-
&& apk add --no-cache --virtual .gettext gettext \
91-
&& mv /usr/bin/envsubst /tmp/ \
92-
\
93-
&& runDeps="$( \
94-
scanelf --needed --nobanner /tmp/envsubst \
95-
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
96-
| sort -u \
97-
| xargs -r apk info --installed \
98-
| sort -u \
99-
)" \
100-
&& apk add --no-cache $runDeps \
101-
&& apk del --no-network .gettext \
102-
&& mv /tmp/envsubst /usr/local/bin/ \
86+
# Add `envsubst` for templating environment variables
87+
&& apk add --no-cache gettext-envsubst \
10388
# Bring in tzdata so users could set the timezones through the environment
10489
# variables
10590
&& apk add --no-cache tzdata \

stable/alpine-slim/Dockerfile

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,8 @@ RUN set -x \
8383
# if we have leftovers from building, let's purge them (including extra, unnecessary build deps)
8484
&& if [ -n "$tempDir" ]; then rm -rf "$tempDir"; fi \
8585
&& if [ -f "/etc/apk/keys/abuild-key.rsa.pub" ]; then rm -f /etc/apk/keys/abuild-key.rsa.pub; fi \
86-
# Bring in gettext so we can get `envsubst`, then throw
87-
# the rest away. To do this, we need to install `gettext`
88-
# then move `envsubst` out of the way so `gettext` can
89-
# be deleted completely, then move `envsubst` back.
90-
&& apk add --no-cache --virtual .gettext gettext \
91-
&& mv /usr/bin/envsubst /tmp/ \
92-
\
93-
&& runDeps="$( \
94-
scanelf --needed --nobanner /tmp/envsubst \
95-
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
96-
| sort -u \
97-
| xargs -r apk info --installed \
98-
| sort -u \
99-
)" \
100-
&& apk add --no-cache $runDeps \
101-
&& apk del --no-network .gettext \
102-
&& mv /tmp/envsubst /usr/local/bin/ \
86+
# Add `envsubst` for templating environment variables
87+
&& apk add --no-cache gettext-envsubst \
10388
# Bring in tzdata so users could set the timezones through the environment
10489
# variables
10590
&& apk add --no-cache tzdata \

0 commit comments

Comments
 (0)