Open
Conversation
choesw
commented
Apr 27, 2024
| const port = 3001; | ||
|
|
||
| ViteExpress.config({ | ||
| mode: "production", |
Contributor
Author
There was a problem hiding this comment.
- production : dist 폴더에 있는 정적 파일을 serving
- development : src 폴더에 있는 파일을 serving
choesw
commented
Apr 27, 2024
| COPY ./dist ./dist | ||
| COPY ./package.json . | ||
| COPY ./package-lock.json . | ||
| COPY ./server.js . |
Contributor
Author
There was a problem hiding this comment.
docker image 빌드 시에는 사실상 dist 폴더와 server.js, 그리고 package.json 의 type: module 정보만 필요하긴 합니다만, package.json 또 다 찢어놓기도 뭐해서 일단 package.json 전체를 다 가져오도록 설정해뒀습니다.
choesw
commented
Apr 27, 2024
| @@ -0,0 +1,12 @@ | |||
| FROM node:20 | |||
Contributor
Author
There was a problem hiding this comment.
노드 버전 몇을 쓰시는지를 몰라서 일단 20으로 설정해뒀습니다.
Contributor
Author
|
요 PR은 확인만 하시라도 올려두는 PR 입니다. 확인하시고 Close 하셔도 됩니다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.