aboutcode-org / aboutcode-org/scancode.io

ALLOWED_HOSTS in a docker container

Aperta
#246 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
215
Fork
203
Merge medio
4g 8h
PR unite (30g)
6

Descrizione

The [documentation](https://github.com/nexB/scancode.io/blob/main/docs/run-docker.rst#run-the-image) 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
1) Placed before building the dockerfile so that `.env` gets copied inside the container and carries the `ALLOWED_HOSTS` value or
2) Be used inside `docker.env`.

2 appears to be a better approach in my opinion.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.