Skip to content

Commit

Permalink
fix(alpine): add --no-cache and --virtual to apk
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito committed Jul 1, 2024
1 parent 246616e commit b9a4de7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.apk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ 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 bash ca-certificates; \
apk add --no-cache --virtual curl; \
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
3 changes: 2 additions & 1 deletion alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ 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 bash ca-certificates; \
apk add --no-cache --virtual curl; \
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 b9a4de7

Please sign in to comment.