I’ve got docker-compose.yml which looks like that:
my-service:
...
volumes:
- ./configuration/super.json:/configs/super.json
And dockerfile for this container which looks like that:
...
COPY configs/* /superdir/
...
The problem is: inside of the container /configs/super.json
contains correct json, but looks like COPY
is not working as i expect, because /superdir/super.json
exists but is empty.
What’s intresting, when I stop this container, remove, again gonna do docker compose up -d my-service
, the content of my json file will show up. What am i doing wrong?