This commit is contained in:
Irwan Cahyono 2025-08-07 23:57:31 +07:00
parent e377cc4783
commit d154b8ccc9

View File

@ -8,18 +8,17 @@ RUN npm install --legacy-peer-deps
COPY . .
RUN npm run build
RUN npm run generate
# Dockerfile untuk server Nuxt 3
FROM node:24-alpine
WORKDIR /app
COPY --from=builder /app/.output ./.output
COPY --from=builder /app/package*.json ./
RUN npm install -g serve
RUN npm install --production --legacy-peer-deps
COPY --from=builder /app/dist ./dist
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]
CMD ["serve", "-s", "dist", "-l", "3000"]