Skip to content

Commit b05f60d

Browse files
Simplify apk upgrade process in the Dockerfile
1 parent a95a4cb commit b05f60d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ RUN npm install -g pnpm && \
3232
FROM alpine
3333

3434
# Install dependencies
35-
RUN apk update && \
36-
apk upgrade && \
35+
RUN apk upgrade --no-cache && \
3736
apk add --no-cache wget ca-certificates tzdata && \
38-
update-ca-certificates 2>/dev/null || true && \
39-
rm -rf /var/cache/apk/*
37+
update-ca-certificates 2>/dev/null || true
4038

4139
# Set timezone
4240
RUN echo "Asia/Shanghai" > /etc/timezone && \

0 commit comments

Comments
 (0)