Files
mathew/frontend/Dockerfile
Aran Roig 7da78fcec4
Some checks failed
Build and Deploy Nuxt / build (push) Has been cancelled
kjdsjkJ
2026-10-01 21:36:30 +02:00

33 lines
521 B
Docker

# ---------- Build Stage ----------
FROM node:22-alpine AS builder
WORKDIR /app
RUN apk add --no-cache python3 make g++ git
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
ARG CACHEBUST=1
COPY . .
# Build the Nuxt app
RUN npm run build
# ---------- Production Stage ----------
FROM node:22-alpine
WORKDIR /app
# Copy built output
COPY --from=builder /app/.output ./.output
# Expose Nuxt port
EXPOSE 3000
# Start Nuxt production server
CMD ["node", ".output/server/index.mjs"]