My question is related to this topic but I have more of a specific question wrt to Docker in general. My configuration looks like this:
container_name: foo
image: foo/bar
volumes:
- ".cachedir:/cachedir"
env_file:
- .env
ports:
- "50052:50052"
restart: always
entrypoint: ["python", "serve.py"]
logging:
options:
max-size: "10m"
max-file: "3"
I made some changes in serve.py, does that mean I need to completely rebuild my docker image in order to have those changes take effect? I tried restarting the docker instance, but no luck. I've tried "up --force-recreate" but that didn't seem to do anything either.
Outside of that, if I do need to rebuild and somehow do it wrong - obviously I'm doing something wrong - what would be a faster way to test my code changes?
I ssh'ed into the machine just to verify that indeed the serve.py did not have any changes in it, it probably depends on the docker image itself, but I have no nano,vi,vim available so I can't edit anything in there either.
I am aware that this is probably a very common/basic question, but I'm currently completely stuck as to how I can get my docker instance to run the latest serve.py code.