Home > database >  Service 'serviceName' failed to build: COPY failed: stat usr/src/backoffice/dist/backoffic
Service 'serviceName' failed to build: COPY failed: stat usr/src/backoffice/dist/backoffic

Time:10-16

i'm getting this new error while running 'Docker-compose build' on my server. it was working perfectly just yesterday. i did't change the Dockerfile.

ps: this error is occuring with every service i run and has the 'COPY' function in it

Error: enter image description here Dockerfile: enter image description here

CodePudding user response:

ng build puts the built app in dist/, so your COPY statement should be

COPY --from=build /usr/src/backoffice/dist /usr/share/nginx/html

CodePudding user response:

Probleme solved !, i had to do a `docker-compose rm' and rebuild from scratch to get rid of the error.

  • Related