scancode.io
scancode.io copied to clipboard
ALLOWED_HOSTS in a docker container
The documentation asks to populate ALLOWED_HOSTS
in .env
during the Run phase. This will have no effect inside the docker container. ALLOWED_HOSTS
should be either
- Placed before building the dockerfile so that
.env
gets copied inside the container and carries theALLOWED_HOSTS
value or - Be used inside
docker.env
.
2 appears to be a better approach in my opinion.