Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions frontend/tiggle/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:20
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

노드 버전 몇을 쓰시는지를 몰라서 일단 20으로 설정해뒀습니다.


WORKDIR /app
COPY ./dist ./dist
COPY ./package.json .
COPY ./package-lock.json .
COPY ./server.js .
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker image 빌드 시에는 사실상 dist 폴더와 server.js, 그리고 package.json 의 type: module 정보만 필요하긴 합니다만, package.json 또 다 찢어놓기도 뭐해서 일단 package.json 전체를 다 가져오도록 설정해뒀습니다.


RUN npm install
EXPOSE 3001

CMD ["node", "server.js"]
Loading