Skip to content

Commit 070b556

Browse files
committed
Dockerfile- download & extract docker-gen in one line
1 parent a12442b commit 070b556

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ RUN deps=' \
1111
set -x; \
1212
apt-get update \
1313
&& apt-get install -y --no-install-recommends $deps \
14-
&& curl -o docker-gen.tar.gz -L $DOWNLOAD_URL \
15-
&& tar -C /usr/local/bin -xvzf docker-gen.tar.gz \
16-
&& rm docker-gen.tar.gz \
14+
&& curl -L $DOWNLOAD_URL | tar -C /usr/local/bin -xvz \
1715
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $deps \
1816
&& apt-get clean -y \
1917
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)