Files
astro-tina/Dockerfile
Kunthawat Greethong 81d3fd48b9
Some checks failed
Deploy to Easypanel / deploy (push) Has been cancelled
Fix: use Node.js 22 (required by Astro 6)
2026-04-27 20:12:08 +07:00

25 lines
375 B
Docker

# Build stage
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Static files stage
FROM nginx:alpine AS runner
WORKDIR /app
# Copy static files from builder
COPY --from=builder /app/dist ./dist
# Copy nginx config
COPY nginx.conf /etc/nginx/http.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]