Skip to content

Commit

Permalink
Simplify apk commands and prevent Alpine cache in Dockerfile.dev
Browse files Browse the repository at this point in the history
Replace `apk update && apk add` with `apk add --update` to combine two
operations into one and prevent temporary Alpine package index files
(/var/cache/apk/*) from being left in the image.

Signed-off-by: Peter Dave Hello <[email protected]>
  • Loading branch information
PeterDaveHello committed Nov 12, 2024
1 parent 0d4ce48 commit 5ce77a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ COPY go.mod go.sum Makefile /xeol/
COPY .github .github

RUN docker-entrypoint.sh sh && \
apk update && \
apk add make curl build-base bash ncurses openssl && \
apk add --update make curl build-base bash ncurses openssl && \
curl -OL https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz && \
tar -C /usr/local -xf go${GO_VERSION}.linux-amd64.tar.gz && \
go install github.com/go-delve/delve/cmd/dlv@d9d8f4ad8c9b0c9cc74b100fb1afb109f89dd493 && \
Expand Down

0 comments on commit 5ce77a2

Please sign in to comment.