freekake_webapp/Dockerfile
2025-08-08 01:56:07 +07:00

26 lines
438 B
Docker

# Dockerfile untuk SPA Nuxt 3
FROM node:24-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY . .
ENV NUXT_FAIL_ON_ERROR=false
RUN npm run generate
# Dockerfile untuk server Nuxt 3
FROM nginx:alpine
# Copy konfigurasi Nginx
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copy hasil build
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]