start.hackmi.ch/Dockerfile
Phil 309e7010c3
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Added WORKDIR
2024-10-21 18:56:23 +02:00

13 lines
No EOL
254 B
Docker

FROM node:20 AS builder
WORKDIR /app
COPY ./ /app
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/