-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 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,16 @@ | ||
#base image | ||
#docker hub에서 image를 pull (node version 17에 issue) | ||
FROM --platform=linux/amd64 node:alpine | ||
|
||
#작업을 수행할 디렉토리를 지정 | ||
WORKDIR /app/frontend | ||
|
||
COPY ./package.json /app/frontend/ | ||
|
||
# 이미지가 빌드 될때 실행 | ||
RUN npm install | ||
|
||
#현재 경로에 있는 것을 app으로 복사 | ||
COPY . /app/frontend/ | ||
|
||
CMD ["npm", "run", "dev"] |