- Dockerfile multi-stage (node:20 build + nginx:alpine serve) - nginx.conf SPA avec try_files et gzip - docker-compose.yml avec labels Registrator/Fabio (SERVICE_80_CHECK_TCP) - .woodpecker.yml : validate, security-check, build-image, SBOM, write-env, test-env, deploy (stop→acme→up), test-deploy, healthcheck - .gitignore : ajout .env et /.reports/ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
255 B
Docker
12 lines
255 B
Docker
FROM node:20-alpine AS builder
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
COPY . .
|
|
RUN VITE_USE_LIVE_API=true npm run build
|
|
|
|
FROM nginx:alpine
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|