skip to Main Content

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

2

Answers


  1. Chosen as BEST ANSWER

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


  2. 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
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search