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