CI / ruff · pytest (pull_request) Successful in 2m34s
Requirement: no extra software beyond the regulated set. The web app is built in a Node stage and served by nginx (:8080, /api → app, SSE unbuffered); the server override keeps it off (host nginx serves the bundle). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
453 B
Docker
13 lines
453 B
Docker
# Patient web app: build with Node in a throwaway stage, serve the static bundle with nginx (+ /api → app).
|
|
# The jury only needs Docker: `make up` builds and starts it (http://localhost:8080).
|
|
FROM node:20-alpine AS build
|
|
WORKDIR /w
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci --no-audit --no-fund
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM nginx:1.27-alpine
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=build /w/dist /usr/share/nginx/html
|