Skip to content

Commit

Permalink
pm2 배포 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed Jul 2, 2024
1 parent 5680a88 commit 0b20f7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ WORKDIR /app

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

# PM2와 serve 설치
RUN npm install -g pm2 serve

EXPOSE 3000

# ESM 모듈을 지원하기 위해 NODE_OPTIONS 설정 추가
ENV NODE_OPTIONS="--experimental-modules"

# PM2를 사용하여 serve 실행
CMD ["pm2-runtime", "serve", "-s", ".", "-l", "3000"]

0 comments on commit 0b20f7d

Please sign in to comment.