Files
slashroot-cc/Dockerfile
Raul Costa 2b25b18fc8
Some checks failed
Build and Update Flux / build-push-update (push) Failing after 36s
RC: (update) dockerfile npm run command
2026-04-02 00:58:55 +01:00

16 lines
427 B
Docker

# Stage 1: Build the Astro project
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2: Serve with Nginx
FROM nginx:alpine
RUN rm -rf /usr/share/nginx/html/*
# Copy the Astro output from the builder stage
COPY --from=builder /app/dist /usr/share/nginx/html
# Expose port 80 for your Helm chart / Traefik to pick up
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]