forked from HangAround/HangAround-Back
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (14 loc) ยท 720 Bytes
/
Dockerfile
File metadata and controls
20 lines (14 loc) ยท 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:12
#์ฑ ๋๋ ํฐ๋ฆฌ ์์ฑ
WORKDIR /usr/src/app
#์ฑ ์์กด์ฑ ์ค์น
#๊ฐ๋ฅํ ๊ฒฝ์ฐ(npm@5+) package.json๊ณผ package-lock.json์ ๋ชจ๋ ๋ณต์ฌํ๊ธฐ ์ํด
#์์ผ๋์นด๋๋ฅผ ์ฌ์ฉ
COPY package*.json /usr/src/app/
RUN npm install
#ํ๋ก๋์
์ ์ํ ์ฝ๋๋ฅผ ๋น๋ํ๋ ๊ฒฝ์ฐ
# RUN npm ci --only=production
#์ฑ ์์ค ์ถ๊ฐ
COPY . /usr/src/app/
EXPOSE 3000
CMD [ "npm", "start" ]