There was an error while loading. Please reload this page.
1 parent d3d97d9 commit 259844cCopy full SHA for 259844c
run/helloworld/Dockerfile
@@ -17,7 +17,7 @@
17
18
# Use the official lightweight Node.js image.
19
# https://hub.docker.com/_/node
20
-FROM node:18-slim
+FROM node:20-slim
21
22
# Create and change to the app directory.
23
WORKDIR /usr/src/app
@@ -30,7 +30,7 @@ COPY package*.json ./
30
# Install production dependencies.
31
# If you add a package-lock.json, speed your build by switching to 'npm ci'.
32
# RUN npm ci --only=production
33
-RUN npm install --only=production
+RUN npm install --omit=dev
34
35
# Copy local code to the container image.
36
COPY . ./
0 commit comments