Files
theater-ziefen-website/Dockerfile
T
johannes.gasser baaef6e528
Build and Deploy / build-and-deploy (push) Successful in 8m0s
add ssr
2026-05-18 10:45:42 +02:00

16 lines
411 B
Docker

# Build: generates /dist (Astro SSR build + Sanity Studio SPA)
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Server: Node.js running the Astro SSR server
FROM node:22-alpine AS frontend
WORKDIR /app
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
ENV PORT=80
EXPOSE 80
CMD ["node", "./dist/server/entry.mjs"]