We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c177a commit f7efeecCopy full SHA for f7efeec
server/server/Dockerfile
@@ -10,8 +10,11 @@ RUN npm run build
10
FROM node:18-alpine
11
WORKDIR /app
12
# Install only production deps
13
-COPY package.json package-lock.json ./
14
-RUN npm ci --production
+COPY package.json ./
+# If a package-lock.json is present, npm ci will be used; if not, fall back
15
+# to npm install so the build doesn't fail when the lockfile is absent in the
16
+# build context (common when CI checkouts or subfolders don't include it).
17
+RUN npm ci --production || npm install --production
18
COPY --from=build /app/dist ./dist
19
EXPOSE 4000
20
CMD ["node", "dist/index.js"]
0 commit comments