From 5ce77a2e6cdb1504d9ca4d03572acea783d494c9 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Wed, 13 Nov 2024 01:07:48 +0800 Subject: [PATCH] Simplify apk commands and prevent Alpine cache in Dockerfile.dev 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 --- Dockerfile.dev | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile.dev b/Dockerfile.dev index 5fe81d1..16e8b35 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -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 && \