-
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.
feat: SignalingServer Docker Hub를 통한 배포
- Loading branch information
1 parent
db149b0
commit 1103180
Showing
3 changed files
with
41 additions
and
0 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,5 @@ | ||
node_modules | ||
dist | ||
.env | ||
*.log | ||
.git |
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,23 @@ | ||
FROM node:18-alpine | ||
|
||
WORKDIR /app | ||
|
||
# Corepack 활성화 및 Yarn 버전 설정 | ||
RUN corepack enable \ | ||
&& corepack prepare [email protected] --activate | ||
|
||
# 패키지 파일 복사 | ||
COPY package.json ./ | ||
|
||
# 소스 코드 복사 | ||
COPY . . | ||
|
||
# 의존성 설치 | ||
RUN yarn install | ||
|
||
# 빌드 | ||
RUN yarn build | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["yarn", "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,13 @@ | ||
services: | ||
signaling-server: | ||
container_name: signaling-server | ||
build: | ||
context: ../../.. | ||
dockerfile: packages/backend/signalingServer/Dockerfile | ||
ports: | ||
- '8080:8080' | ||
environment: | ||
- NODE_ENV=production | ||
- SIGNALING_SERVER_PORT=8080 | ||
- ORIGIN=http://localhost:3000 | ||
restart: always |