Skip to content

Commit

Permalink
feat: SignalingServer Docker Hub를 통한 배포
Browse files Browse the repository at this point in the history
  • Loading branch information
today-is-first committed Nov 19, 2024
1 parent db149b0 commit 1103180
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/backend/signalingServer/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist
.env
*.log
.git
23 changes: 23 additions & 0 deletions packages/backend/signalingServer/Dockerfile
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"]
13 changes: 13 additions & 0 deletions packages/backend/signalingServer/docker-compose.yml
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

0 comments on commit 1103180

Please sign in to comment.