Align CI/CD with shared infra/ci-workflows and drop compose-based CI.
Replace hand-rolled jobs with @v1 callers, capped bake/migrate CD, and remove the docker-compose.ci.yml bridge workaround.
This commit is contained in:
@@ -8,12 +8,13 @@ COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
# No VITE_API_URL build-arg needed: src/api/client.ts and src/api/fhirClient.ts
|
||||
# use relative base URLs ("/api/v1", "/fhir") and rely on the nginx reverse proxy
|
||||
# below to reach the api container at runtime — same origin in every environment.
|
||||
RUN npm run build
|
||||
# Typecheck runs in CI (npm run typecheck). Image build is vite only.
|
||||
# No VITE_API_URL build-arg: src/api/client.ts and src/api/fhirClient.ts use
|
||||
# relative base URLs ("/api/v1", "/fhir"); nginx reverse-proxies to the api
|
||||
# container — same origin in every environment.
|
||||
RUN npx vite build
|
||||
|
||||
FROM nginx:1.27-alpine AS runtime
|
||||
FROM nginx:1.27-alpine AS final
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
|
||||
|
||||
Reference in New Issue
Block a user