Skip to content

Commit 259844c

Browse files
authored
fix: resolve WARNs and Update version of Node.js used (GoogleCloudPlatform#3658)
* update to use node:20-slim * resolves warning that comes up npm WARN config only Use `--omit=dev` https://docs.npmjs.com/cli/v9/commands/npm-ci#omit
1 parent d3d97d9 commit 259844c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run/helloworld/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Use the official lightweight Node.js image.
1919
# https://hub.docker.com/_/node
20-
FROM node:18-slim
20+
FROM node:20-slim
2121

2222
# Create and change to the app directory.
2323
WORKDIR /usr/src/app
@@ -30,7 +30,7 @@ COPY package*.json ./
3030
# Install production dependencies.
3131
# If you add a package-lock.json, speed your build by switching to 'npm ci'.
3232
# RUN npm ci --only=production
33-
RUN npm install --only=production
33+
RUN npm install --omit=dev
3434

3535
# Copy local code to the container image.
3636
COPY . ./

0 commit comments

Comments
 (0)