generate
This commit is contained in:
parent
5acc8b0934
commit
ec74900658
@ -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"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user