build


Dockerfile

#Dockerfile을 다음과 같이 작성(FrontEnd)

FROM node:alpine
WORKDIR /app
COPY package*.json ./
COPY ./ ./
RUN npm i
CMD ["npm", "run", "start"]

Docker image 파일 작성

docker build -f (미리 만든 Dockerfile 이름) -t (만들 image 이름):(태그) (현재위치)

ex) docker build -f Dockerfile -t client:0.1 .


Docker image 실행