monzo-api/Dockerfile
2025-05-01 05:01:35 +01:00

15 lines
439 B
Docker

FROM ghcr.io/astral-sh/uv:alpine
RUN uv venv /code/.venv
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN uv pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY ./app /code/app
# If running behind a proxy like Nginx or Traefik add --proxy-headers
# CMD ["uv", "run", "fastapi", "run", "app/main.py", "--port", "80", "--proxy-headers"]
CMD ["uv", "run", "fastapi", "run", "app/main.py", "--port", "80"]