FROM python:3.13.3 | |
WORKDIR /app | |
COPY ./requirements.txt . | |
RUN pip install --no-cache-dir --upgrade -r ./requirements.txt | |
COPY ./app ./app | |
CMD ["fastapi", "run", "app/main.py", "--port", "3000"] | |
# If running behind a proxy like Nginx or Traefik add --proxy-headers | |
# CMD ["fastapi", "run", "app/main.py", "--port", "80", "--proxy-headers"] |