Files
theater-ziefen-website/Dockerfile
T
johannes.gasser a7bad87f43
Build and Deploy / build-and-deploy (push) Failing after 22s
ci/cd
2026-05-03 16:17:49 +02:00

20 lines
328 B
Docker

FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]