Skip to content

Commit 6909e7a

Browse files
committed
Dockerfile: copy package.json only so build works when package-lock.json is missing
1 parent ff0000e commit 6909e7a

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

DOCKER_DEPLOYMENT.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ The workflow uses `GITHUB_TOKEN` which is automatically available - no additiona
5353

5454
### Build Docker image locally:
5555
```bash
56-
cd editor
5756
docker build -t app-scripting-editor .
5857
```
5958

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ RUN echo "🔍 Build Environment Debug:" && \
3333
echo "VITE_NODE_ENV=$VITE_NODE_ENV"
3434

3535
# Copy package files first for better Docker layer caching
36-
COPY package.json package-lock.json ./
36+
# Copy package.json (package-lock.json may be absent in this repo; npm ci will fall back to npm install)
37+
COPY package.json ./
3738

3839
# Remove Windows-specific Rollup package and install dependencies
3940
RUN npm pkg delete devDependencies.@rollup/rollup-win32-x64-msvc && \

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.8'
22
services:
33
editor:
44
build:
5-
context: ./editor
5+
context: ./
66
dockerfile: Dockerfile
77
ports:
88
- "5173:80"
@@ -13,7 +13,7 @@ services:
1313

1414
editor-api:
1515
build:
16-
context: ./editor/server
16+
context: ./server
1717
dockerfile: Dockerfile
1818
ports:
1919
- "4000:4000"

src/validator.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const ajv = new Ajv2020({ allErrors: true, strict: false });
1010
ajv.addSchema(shared);
1111
ajv.addSchema(rangeAnalysis);
1212
ajv.addSchema(perfCenter);
13-
console.log('Ajv loaded schema IDs:', Object.keys(ajv.schemas));
1413
// Extra diagnostics for performance-center mismatch investigation
1514
try {
1615
const perfId = (perfCenter && (perfCenter as any).$id) || '(no $id)';

0 commit comments

Comments
 (0)