freekake_webapp/Dockerfile
2025-08-08 12:27:28 +07:00

25 lines
455 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 . .
RUN npm run build
# Dockerfile untuk server Nuxt 3
FROM nginx:1.29-alpine
RUN rm -f /etc/nginx/conf.d/default.conf
# COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/
COPY --from=builder /app/.output/public /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]