From b05f60d29dce649d479c76b03aef0ac1d72af1b4 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Thu, 29 Aug 2024 22:07:08 +0800 Subject: [PATCH] Simplify apk upgrade process in the Dockerfile --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 297694cd..b94ca20b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \