Skip to content

Commit

Permalink
Merge pull request #47 from yosifkit/curl
Browse files Browse the repository at this point in the history
Move curl installation to `apt-get purge` RUN line
  • Loading branch information
id authored Sep 25, 2023
2 parents 6e4c675 + 9f49bf6 commit be20872
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 5.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM debian:11-slim

RUN set -eu; \
apt-get update; \
apt-get install -y --no-install-recommends curl ca-certificates procps; \
apt-get install -y --no-install-recommends ca-certificates procps; \
rm -rf /var/lib/apt/lists/*

RUN groupadd -r -g 1000 emqx; \
Expand All @@ -14,6 +14,9 @@ ENV ARM64_SHA256=b4991f1f7d44963ad7ff0fd65234f9ae39298ea43d9fa8b009035d649e4c17d
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8

RUN set -eu; \
apt-get update; \
apt-get install -y --no-install-recommends curl; \
rm -rf /var/lib/apt/lists/*; \
arch=$(dpkg --print-architecture); \
if [ ${arch} = "amd64" ]; then sha256="$AMD64_SHA256"; fi; \
if [ ${arch} = "arm64" ]; then sha256="$ARM64_SHA256"; fi; \
Expand Down

0 comments on commit be20872

Please sign in to comment.