This commit is contained in:
Irwan Cahyono 2025-08-08 01:42:22 +07:00
parent 5acc8b0934
commit ec74900658

View File

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