react
프로젝트를 build
한뒤, 해당 위치로 이동#Dockerfile을 다음과 같이 작성(FrontEnd)
FROM node:alpine
WORKDIR /app
COPY package*.json ./
COPY ./ ./
RUN npm i
CMD ["npm", "run", "start"]
docker build -f (미리 만든 Dockerfile 이름) -t (만들 image 이름):(태그) (현재위치)
ex) docker build -f Dockerfile -t client:0.1 .