Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added extra documentation to mention alignment of port variables #44

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/builds/dockerfile/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Below is an example Dockerfile based off a Python application using FastAPI and

:::info
Keep in mind you'll need to alter this to work with your specific file structure.
Exposed Port must match PORT variable defined in enviroment varibles, here it's 8080.
:::

```bash title="/Dockerfile"
Expand All @@ -23,5 +24,5 @@ COPY --from=requirements-stage /tmp/requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY ./app /code/app

CMD ["uvicorn", "app.main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "80"]
CMD ["uvicorn", "app.main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "8080"]
```