Skip to content

Commit

Permalink
Fix: dockerfile error 3
Browse files Browse the repository at this point in the history
  • Loading branch information
kmc7468 committed Nov 26, 2024
1 parent d7ae501 commit 6acd1c2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,17 @@ FROM node:18-alpine

WORKDIR /usr/src/app

RUN npm install --global [email protected]

COPY pnpm-lock.yaml .
RUN pnpm fetch --prod

COPY package.json .
RUN pnpm install --prod

COPY --from=builder /usr/src/app/dist dist

# Run container
EXPOSE 80
ENV PORT 80
CMD ["node", "dist/index.js"]
CMD ["pnpm", "serve"]

0 comments on commit 6acd1c2

Please sign in to comment.