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"]