인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

hambojajob5498's profile image
hambojajob5498

asked

Learn Docker and CI environment by following [2023.11 update]

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

Written on

·

406

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
githubdockerawscicdtravis-ci데이터 엔지니어링

Answer

This question is waiting for answers
Be the first to answer!
hambojajob5498's profile image
hambojajob5498

asked

Ask a question