Files
theater-ziefen-website/Dockerfile
T
johannes.gasser 2d80e7ad49
Build and Deploy / build-and-deploy (push) Successful in 3m32s
fix build
2026-05-07 10:05:24 +02:00

15 lines
409 B
Docker

# Build: generates /dist (Astro static site + Sanity Studio SPA)
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Frontend: Nginx serving the static site + Sanity Studio SPA
FROM nginx:alpine AS frontend
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