monzo-api/Dockerfile
2025-07-09 06:47:17 +01:00

17 lines
420 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", "--proxy-headers"]
CMD ["uv", "run", "fastapi", "run", "app/main.py"]
EXPOSE 8000