aboutcode-org / aboutcode-org/scancode.io

ALLOWED_HOSTS in a docker container

Ouverte
#246 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
215
Forks
203
Merge moyen
4 j 8 h
PR mergées (30 j)
6

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.