-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bada308-patch-1
- Loading branch information
Showing
8 changed files
with
482 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Ignore node_modules | ||
node_modules | ||
|
||
# Ignore log files | ||
*.log | ||
|
||
# Ignore build directory | ||
build | ||
dist | ||
|
||
# Ignore Dockerfile and .dockerignore itself | ||
Dockerfile | ||
.dockerignore | ||
|
||
# Ignore other files or directories that are not needed | ||
.git | ||
.gitignore |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
node_modules | ||
|
||
# env | ||
.env | ||
.env* | ||
|
||
# build | ||
dist |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# FROM: 생성할 이미지의 베이스가 될 이미지 결정 | ||
FROM node | ||
|
||
# WORKDIR: 이미지 내에서 명령어를 실행할 디렉토리를 설정 | ||
# 컨테이너 내부에 /app 디렉토리를 생성하고, 이 디렉토리를 WORKDIR로 설정 | ||
WORKDIR /app | ||
|
||
# COPY: 로컬 파일을 이미지 내부로 복사 | ||
# package.json 파일을 /app 디렉토리로 복사 (.은 현재 디렉토리를 의미) | ||
COPY package.json . | ||
COPY package-lock.json . | ||
|
||
# RUN: 명령어를 실행 | ||
# npm install 명령어를 실행하여 package.json에 명시된 패키지를 설치 | ||
RUN npm install | ||
|
||
# COPY: 로컬 파일을 이미지 내부로 복사 | ||
# 현재 디렉토리의 모든 파일을 /app 디렉토리로 복사 | ||
COPY . . | ||
|
||
# EXPOSE: 컨테이너가 실행될 때 사용할 포트를 설정 | ||
# 3000번 포트를 외부에 노출 | ||
EXPOSE 8080 | ||
|
||
# CMD: 컨테이너가 시작되었을 때 실행할 명령어를 설정 | ||
# npm start 명령어를 실행하여 서버를 실행 | ||
CMD [ "npm", "start" ] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"watch": ["src/**/*"], | ||
"ignore": ["src/public/*"], | ||
"ext": "js,jsx,ts,tsx", | ||
"exec": "npm start" | ||
} |
Oops, something went wrong.