start.hackmi.ch/Dockerfile
Phil b9981813d5
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Changed Node to v20
2024-10-21 18:53:24 +02:00

12 lines
No EOL
243 B
Docker

FROM node:20 AS builder
RUN npm install
RUN npm run build
COPY dist/* /dist/
FROM nginx:stable-alpine-slim AS production
RUN rm -rf /usr/share/nginx/html
RUN mkdir -p /usr/share/nginx/html
COPY --from=builder /dist/* /usr/share/nginx/html/