Remove redundant apk update calls in Dockerfile

Removed unnecessary `apk update` commands in Dockerfile. 
The apk add commands already utilize the `--no-cache` option, making the update step superfluous and ensuring the latest packages are used without maintaining a local cache. An additional `apk update` in another Docker image layer will increase the image size with no benefits.
This commit is contained in:
Peter Dave Hello
2025-06-04 22:50:36 +08:00
committed by GitHub
parent 67efbb2627
commit 731c5f4a65
+2 -2
View File
@@ -9,7 +9,7 @@ COPY package*.json ./
COPY patches ./
# Upgrade system packages
RUN apk update && apk upgrade --no-cache
RUN apk upgrade --no-cache
# Upgrade npm to version 10.9.2
RUN npm install -g [email protected]
@@ -29,7 +29,7 @@ RUN npm run build \
FROM node:20-alpine
# Upgrade system packages
RUN apk update && apk upgrade --no-cache
RUN apk upgrade --no-cache
# Upgrade npm to version 10.9.2
RUN npm install -g [email protected]