brunsviga-demo/Dockerfile

13 lines
246 B
Docker
Raw Normal View History

FROM node:20 AS builder
COPY . /brunsviga
WORKDIR /brunsviga
RUN npm ci
RUN npm run build
FROM nginx:mainline-alpine3.20-slim as runtime
COPY --from=builder /brunsviga/dist /usr/share/nginx/html/
RUN chown -R 1000:1000 /usr/share/nginx/html/