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 f7efeec commit 4826266Copy full SHA for 4826266
server/server/Dockerfile
@@ -1,8 +1,12 @@
1
# Dockerfile for editor mock API (TypeScript/Express)
2
FROM node:18-alpine AS build
3
WORKDIR /app
4
-COPY package.json package-lock.json ./
5
-RUN npm ci --production=false
+# Copy only package.json from the build context. The repo root package-lock.json
+# is not available when building from the subfolder context, which caused
6
+# BuildKit checksum errors. Use npm ci when a lockfile exists, otherwise
7
+# fall back to npm install so the build doesn't fail.
8
+COPY package.json ./
9
+RUN npm ci --production=false || npm install --production=false
10
COPY tsconfig.json ./
11
COPY src ./src
12
RUN npm run build
0 commit comments