Skip to content

Commit

Permalink
Simplify apk upgrade process in the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Aug 29, 2024
1 parent a95a4cb commit b05f60d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ RUN npm install -g pnpm && \
FROM alpine

# Install dependencies
RUN apk update && \
apk upgrade && \
RUN apk upgrade --no-cache && \
apk add --no-cache wget ca-certificates tzdata && \
update-ca-certificates 2>/dev/null || true && \
rm -rf /var/cache/apk/*
update-ca-certificates 2>/dev/null || true

# Set timezone
RUN echo "Asia/Shanghai" > /etc/timezone && \
Expand Down

0 comments on commit b05f60d

Please sign in to comment.