cobaini
This commit is contained in:
parent
d154b8ccc9
commit
b30f396ec4
@ -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"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user