oidc-fastapi-test/Containerfile

24 lines
555 B
Text
Raw Permalink Normal View History

2025-01-09 23:41:32 +01:00
FROM docker.io/library/python:alpine
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
COPY . /app
2025-01-09 23:41:32 +01:00
# Sync the project into a new environment, using the frozen lockfile
WORKDIR /app
2025-01-09 23:41:32 +01:00
RUN uv pip install --system .
2025-01-09 23:41:32 +01:00
# Possible to run with:
#CMD ["oidc-test", "--port", "80"]
#CMD ["fastapi", "run", "src/oidc_test/main.py", "--port", "8873", "--root-path", "/oidc-test"]
#
# Running uvicorn is most flexible:
CMD [ \
"uvicorn", \
"oidc_test.main:app", \
"--host", "0.0.0.0", \
"--port", "80", \
2025-01-16 05:40:07 +01:00
"--forwarded-allow-ips", "*" \
]