Fixed Dockerfile
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Phil 2024-10-21 18:47:43 +02:00
parent 1fe659f410
commit fa82c80ccc
Signed by: Phil
GPG key ID: 350C8B7C4EF5DED4

View file

@ -1,11 +1,12 @@
FROM node:alpine as builder FROM node:latest as builder
WORKDIR /src
RUN npm install RUN npm install
RUN npm run build RUN npm run build
COPY dist/* /dist/
FROM nginx:stable-alpine-slim FROM nginx:stable-alpine-slim
RUN rm -rf /usr/share/nginx/html RUN rm -rf /usr/share/nginx/html
RUN mkdir -p /usr/share/nginx/html RUN mkdir -p /usr/share/nginx/html
COPY --from=builder /src/dist/* /usr/share/nginx/html/ COPY --from=builder /dist/* /usr/share/nginx/html/