강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

JunYoung Youn님의 프로필 이미지
JunYoung Youn

작성한 질문수

따라하며 배우는 도커와 CI환경 [2023.11 업데이트]

COPY failed: stat app/build: file does not exist

작성

·

422

0

Docker fullstack app

github -> travis ci -> docker hub -> aws

강의에서 travis ci에서

5.28s$ docker build -t [secure]/docker-frontend ./frontend

진행시 오류가 납니다.

Step 10/10 : COPY --from=builder /app/build /usr/share/nginx/html

320COPY failed: stat app/build: file does not exist

Dockerfile 내용

FROM node:alpine as builder

WORKDIR /app

COPY ./package.json ./

RUN npm install

COPY ./ ./

CMD npm run build

FROM nginx
EXPOSE 3000
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/build /usr/share/nginx/html

답변

답변을 기다리고 있는 질문이에요
첫번째 답변을 남겨보세요!
JunYoung Youn님의 프로필 이미지
JunYoung Youn

작성한 질문수

질문하기