Skip to content

Commit

Permalink
build: Docker file setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ohhonggi committed Jul 31, 2023
1 parent ba0b25f commit ad20147
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
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"]

0 comments on commit ad20147

Please sign in to comment.