File tree Expand file tree Collapse file tree 2 files changed +4
-34
lines changed Expand file tree Collapse file tree 2 files changed +4
-34
lines changed Original file line number Diff line number Diff line change @@ -83,23 +83,8 @@ RUN set -x \
83
83
# if we have leftovers from building, let's purge them (including extra, unnecessary build deps)
84
84
&& if [ -n "$tempDir" ]; then rm -rf "$tempDir" ; fi \
85
85
&& 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(/,/, " \n so:", $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 \
103
88
# Bring in tzdata so users could set the timezones through the environment
104
89
# variables
105
90
&& apk add --no-cache tzdata \
Original file line number Diff line number Diff line change @@ -83,23 +83,8 @@ RUN set -x \
83
83
# if we have leftovers from building, let's purge them (including extra, unnecessary build deps)
84
84
&& if [ -n "$tempDir" ]; then rm -rf "$tempDir" ; fi \
85
85
&& 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(/,/, " \n so:", $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 \
103
88
# Bring in tzdata so users could set the timezones through the environment
104
89
# variables
105
90
&& apk add --no-cache tzdata \
You can’t perform that action at this time.
0 commit comments