I am following the provided tutorial to develop a python web app.
When I run
docker-compose run -d --rm --no-deps app python app.py create_db
I see my app is hosted at 192.168.99.100
However when I view the app, it looks like this:
I looked inside the Chrome Console and found resources weren’t found:
GET http://192.168.99.100/img/background.jpg 404 (NOT FOUND)
What is confusing is that my Dockerfile is set up to copy all my local files (including the img directory) into the src directory.
ADD . /src WORKDIR /src
My question is this,
Why are my pages unable to find their dependencies? If /src is set as the working directory, why isn’t my container able to find the img directory?