Skip to content

Commit

Permalink
fix: Remove additional --update for apk in Dockerfile (#675)
Browse files Browse the repository at this point in the history
In Alpine Linux's `apk`, the use of `--no-cache` ensures the index is fetched every time, making a local cache unnecessary. Therefore, combining it with `--update` is redundant and should be removed to prevent temporary files in the Docker image.
  • Loading branch information
PeterDaveHello committed Sep 7, 2023
1 parent 4e2c064 commit c585c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -18,7 +18,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w -X main.version=$ltag" -o

FROM alpine

RUN apk add --no-cache --update \
RUN apk add --no-cache \
py3-docutils \
asciidoctor

Expand Down

0 comments on commit c585c5f

Please sign in to comment.