Skip to content

Commit

Permalink
fix(alpine): add --no-cache to apk add
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito committed Jul 1, 2024
1 parent 246616e commit cdf93ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.apk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ COPY kong.tar.gz /tmp/kong.tar.gz
RUN set -ex; \
major_minor="$(echo "${KONG_VERSION%.*}" | tr -d '.')"; \
KONG_SHA256=$KONG_AMD64_SHA ; \
apk add bash curl ca-certificates; \
apk add --no-cache curl bash ca-certificates; \
if [ "$ASSET" = "remote" ] ; then \
curl -fL "https://packages.konghq.com/public/gateway-${major_minor}/alpine/any-version/main/x86_64/kong-${KONG_VERSION}.apk" -o /tmp/kong.tar.gz \
&& echo "$KONG_SHA256 /tmp/kong.tar.gz" | sha256sum -c -; \
Expand Down
2 changes: 1 addition & 1 deletion alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ COPY kong.tar.gz /tmp/kong.tar.gz
RUN set -ex; \
major_minor="$(echo "${KONG_VERSION%.*}" | tr -d '.')"; \
KONG_SHA256=$KONG_AMD64_SHA ; \
apk add bash curl ca-certificates; \
apk add --no-cache curl bash ca-certificates; \
if [ "$ASSET" = "remote" ] ; then \
curl -fL "https://packages.konghq.com/public/gateway-${major_minor}/alpine/any-version/main/x86_64/kong-${KONG_VERSION}.apk" -o /tmp/kong.tar.gz \
&& echo "$KONG_SHA256 /tmp/kong.tar.gz" | sha256sum -c -; \
Expand Down

0 comments on commit cdf93ae

Please sign in to comment.