mirror of
https://gh-proxy.org/https://github.com/klinsmaya/gateway.git
synced 2026-11-08 00:57:59 +08:00
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:
+2
-2
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user