Skip to content

Commit 43588fc

Browse files
committed
Dockerfile: use node:20 and include schema copies so Vite can resolve JSON imports in CI
1 parent 7804939 commit 43588fc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROM node:18-alpine AS build
2+
FROM node:20-alpine AS build
33
WORKDIR /app
44

55
# Build arguments for version info
@@ -36,6 +36,14 @@ RUN echo "🔍 Build Environment Debug:" && \
3636
# Copy package.json (package-lock.json may be absent in this repo; npm ci will fall back to npm install)
3737
COPY package.json ./
3838

39+
# Ensure JSON schema files are present in the build context so imports like
40+
# `../schema/latest/shared.schema.json` can be resolved by Vite/Rollup on Linux
41+
# (case-sensitive filesystems and sparse checkouts in CI can sometimes omit
42+
# them when the Docker context is prepared). Copy both top-level `schema`
43+
# and any `src/schema` used during development.
44+
COPY schema ./schema
45+
COPY src/schema ./src/schema
46+
3947
# Remove Windows-specific Rollup package and install dependencies
4048
RUN npm pkg delete devDependencies.@rollup/rollup-win32-x64-msvc && \
4149
npm ci || npm install

0 commit comments

Comments
 (0)