start.hackmi.ch/Dockerfile
Phil a6861caedd
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Made Copy better
2024-10-21 19:01:01 +02:00

13 lines
No EOL
249 B
Docker

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