Skip to content

Commit

Permalink
다시 커밋내용 복기
Browse files Browse the repository at this point in the history
  • Loading branch information
codesejin committed Jul 16, 2023
1 parent 4d1154e commit 81021da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ ENTRYPOINT ["top", "-b"]
# 베이스 이미지 선택
FROM node:18

ENV NODE_ENV production

WORKDIR /src


# 앱 종속성 설치
COPY package.json ./
RUN npm install


# 앱 소스 코드 복사
COPY . .

Expand All @@ -25,4 +29,5 @@ EXPOSE 3000
# RUN chmod +x /wait-for-it.sh

# 앱 실행 명령
CMD /wait-for-it.sh mysql:3306 -- npm run start:seed
# CMD /wait-for-it.sh mysql:3306 -- npm run start:seed
CMD ["npm", "run", "start:prod"]
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ services:
MYSQL_DATABASE: animalnest
TZ: Asia/Seoul
ports:
- '3307:3306'
- '3306:3306'

0 comments on commit 81021da

Please sign in to comment.