Added WORKDIR
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Phil 2024-10-21 18:56:23 +02:00
parent b9981813d5
commit 309e7010c3
Signed by: Phil
GPG key ID: 350C8B7C4EF5DED4

View file

@ -1,12 +1,13 @@
FROM node:20 AS builder
WORKDIR /app
COPY ./ /app
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/
COPY --from=builder /app/dist/* /usr/share/nginx/html/