df
This commit is contained in:
parent
e377cc4783
commit
d154b8ccc9
@ -8,18 +8,17 @@ RUN npm install --legacy-peer-deps
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run generate
|
||||||
|
|
||||||
# Dockerfile untuk server Nuxt 3
|
# Dockerfile untuk server Nuxt 3
|
||||||
FROM node:24-alpine
|
FROM node:24-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=builder /app/.output ./.output
|
RUN npm install -g serve
|
||||||
COPY --from=builder /app/package*.json ./
|
|
||||||
|
|
||||||
RUN npm install --production --legacy-peer-deps
|
COPY --from=builder /app/dist ./dist
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["node", ".output/server/index.mjs"]
|
CMD ["serve", "-s", "dist", "-l", "3000"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user