#1 [internal] load local bake definitions #1 reading from stdin 477B done #1 DONE 0.0s #2 [internal] load build definition from Dockerfile #2 transferring dockerfile: 2.17kB done #2 DONE 0.0s #3 [internal] load metadata for docker.io/library/python:3.12-slim #3 DONE 0.0s #4 [internal] load metadata for docker.io/library/node:20-alpine #4 DONE 0.7s #5 [internal] load .dockerignore #5 transferring context: 186B done #5 DONE 0.0s #6 [frontend 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done #6 DONE 0.0s #7 [schema 1/6] FROM docker.io/library/python:3.12-slim@sha256:423ed6ab25b1921a477529254bfeeabf5855151dc2c3141699a1bfc852199fbf #7 resolve docker.io/library/python:3.12-slim@sha256:423ed6ab25b1921a477529254bfeeabf5855151dc2c3141699a1bfc852199fbf 0.0s done #7 DONE 0.0s #8 [internal] load build context #8 transferring context: 370.93kB done #8 DONE 0.0s #9 [schema 3/6] COPY requirements.txt ./ #9 CACHED #10 [schema 2/6] WORKDIR /app_root #10 CACHED #11 [frontend 2/7] WORKDIR /build #11 CACHED #12 [frontend 3/7] COPY frontend/package.json frontend/package-lock.json* ./ #12 CACHED #13 [frontend 4/7] RUN npm ci || npm install #13 CACHED #14 [schema 4/6] RUN pip install --no-cache-dir -r requirements.txt #14 CACHED #15 [runtime 4/9] RUN pip install --no-cache-dir -r requirements.txt #15 CACHED #16 [schema 5/6] COPY app/ ./app/ #16 DONE 0.1s #17 [frontend 5/7] COPY frontend/ ./ #17 DONE 0.1s #18 [runtime 5/9] COPY app/ ./app/ #18 DONE 0.1s #19 [runtime 6/9] COPY alembic.ini ./ #19 DONE 0.1s #20 [runtime 7/9] COPY alembic/ alembic/ #20 DONE 0.1s #21 [schema 6/6] RUN python -c "import json; from app.main import app; open('/openapi.json','w').write(json.dumps(app.openapi()))" #21 DONE 2.0s #22 [frontend 6/7] COPY --from=schema /openapi.json /openapi.json #22 DONE 0.1s #23 [frontend 7/7] RUN npx openapi-typescript /openapi.json -o src/api/schema.d.ts && npm run build && mkdir -p /out && cp -r ../app/static /out/static #23 1.473 ✨ openapi-typescript 7.13.0 #23 1.715 🚀 /openapi.json → src/api/schema.d.ts [245.3ms] #23 1.863 #23 1.863 > easel@0.2.0 build #23 1.863 > tsc && vite build #23 1.863 #23 2.709 src/views/Viewer.tsx(115,6): error TS1434: Unexpected keyword or identifier. #23 2.710 src/views/Viewer.tsx(115,14): error TS1434: Unexpected keyword or identifier. #23 2.710 src/views/Viewer.tsx(115,16): error TS1434: Unexpected keyword or identifier. #23 2.710 src/views/Viewer.tsx(115,21): error TS1228: A type predicate is only allowed in return type position for functions and methods. #23 2.710 src/views/Viewer.tsx(115,24): error TS1434: Unexpected keyword or identifier. #23 2.710 src/views/Viewer.tsx(115,29): error TS1434: Unexpected keyword or identifier. #23 2.710 src/views/Viewer.tsx(115,36): error TS1434: Unexpected keyword or identifier. #23 2.710 src/views/Viewer.tsx(115,40): error TS1434: Unexpected keyword or identifier. #23 2.710 src/views/Viewer.tsx(115,68): error TS1005: ';' expected. #23 2.710 src/views/Viewer.tsx(115,73): error TS1228: A type predicate is only allowed in return type position for functions and methods. #23 2.710 src/views/Viewer.tsx(116,6): error TS1434: Unexpected keyword or identifier. #23 2.710 src/views/Viewer.tsx(116,10): error TS1434: Unexpected keyword or identifier. #23 2.710 src/views/Viewer.tsx(116,15): error TS1434: Unexpected keyword or identifier. #23 2.710 src/views/Viewer.tsx(116,20): error TS1434: Unexpected keyword or identifier. #23 2.710 src/views/Viewer.tsx(116,24): error TS1434: Unexpected keyword or identifier. #23 2.710 src/views/Viewer.tsx(116,29): error TS1434: Unexpected keyword or identifier. #23 2.711 src/views/Viewer.tsx(116,31): error TS1434: Unexpected keyword or identifier. #23 2.711 src/views/Viewer.tsx(116,38): error TS1434: Unexpected keyword or identifier. #23 2.711 src/views/Viewer.tsx(116,44): error TS1434: Unexpected keyword or identifier. #23 2.711 src/views/Viewer.tsx(116,65): error TS1003: Identifier expected. #23 2.711 src/views/Viewer.tsx(116,66): error TS1161: Unterminated regular expression literal. #23 ERROR: process "/bin/sh -c npx openapi-typescript /openapi.json -o src/api/schema.d.ts && npm run build && mkdir -p /out && cp -r ../app/static /out/static" did not complete successfully: exit code: 2 ------ > [frontend 7/7] RUN npx openapi-typescript /openapi.json -o src/api/schema.d.ts && npm run build && mkdir -p /out && cp -r ../app/static /out/static: 2.710 src/views/Viewer.tsx(116,10): error TS1434: Unexpected keyword or identifier. 2.710 src/views/Viewer.tsx(116,15): error TS1434: Unexpected keyword or identifier. 2.710 src/views/Viewer.tsx(116,20): error TS1434: Unexpected keyword or identifier. 2.710 src/views/Viewer.tsx(116,24): error TS1434: Unexpected keyword or identifier. 2.710 src/views/Viewer.tsx(116,29): error TS1434: Unexpected keyword or identifier. 2.711 src/views/Viewer.tsx(116,31): error TS1434: Unexpected keyword or identifier. 2.711 src/views/Viewer.tsx(116,38): error TS1434: Unexpected keyword or identifier. 2.711 src/views/Viewer.tsx(116,44): error TS1434: Unexpected keyword or identifier. 2.711 src/views/Viewer.tsx(116,65): error TS1003: Identifier expected. 2.711 src/views/Viewer.tsx(116,66): error TS1161: Unterminated regular expression literal. ------ Dockerfile:24 -------------------- 23 | # Generated types land in src/api/schema.d.ts (gitignored; never committed). 24 | >>> RUN npx openapi-typescript /openapi.json -o src/api/schema.d.ts \ 25 | >>> && npm run build && mkdir -p /out && cp -r ../app/static /out/static 26 | -------------------- failed to solve: process "/bin/sh -c npx openapi-typescript /openapi.json -o src/api/schema.d.ts && npm run build && mkdir -p /out && cp -r ../app/static /out/static" did not complete successfully: exit code: 2