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