petter2025's picture
Update Dockerfile
2cebfbb verified
raw
history blame
393 Bytes
FROM python:3.12-slim
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
WORKDIR /app
ARG ARF_GITHUB_PAT
RUN git config --global url."https://oauth2:${ARF_GITHUB_PAT}@github.com/".insteadOf "https://github.com/"
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]