allow setting the port via env var
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 20
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Rather than hardcoding it to port 80 here it would be nice to be able to set the port to something else. For example, if the PORT=80 var is defined by default and the -b arg is dropped from the docker CMD, then gunicorn binds to 0.0.0.0:$PORT by default (docs here), which is more easily configurable.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with line 20 of the Dockerfile and the current gunicorn command, then review gunicorn's bind setting documentation linked in the issue. The change is complete when the container's listening port can be selected through PORT rather than being fixed at 80, while retaining the documented default behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 58/100