Skip to content

Commit

Permalink
Merge pull request #246 from PeterDaveHelloKitchen/OptimizeDockerfile
Browse files Browse the repository at this point in the history
Simplify apk upgrade process in the Dockerfile
  • Loading branch information
zmh-program authored Sep 3, 2024
2 parents 4950aca + b05f60d commit 50c6581
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 50c6581

Please sign in to comment.