Files
theater-ziefen-website/Dockerfile
T
johannes.gasser fb5aa07373
Build and Deploy / build-and-deploy (push) Failing after 36s
add ssr
2026-05-18 10:34:38 +02:00

16 lines
399 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
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"]