-1

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

  • Please don't post text as images. It makes it really hard for users to copy-paste to their own machines if they want to try to reproduce your problem. – Hans Kilian Oct 14 '22 at 08:16

2 Answers2

0

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
Hans Kilian
  • 18,948
  • 1
  • 26
  • 35
  • Thanks for your answer, the probleme is that it is running in my local machine. but not in the server. – Mimomode Oct 14 '22 at 10:02
0

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