Spaces:
Running
Running
File size: 375 Bytes
1b81d8f bdf20e7 8eaad14 bdf20e7 8eaad14 bdf20e7 2e07b65 1aa8a4d bdf20e7 2e07b65 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
COPY requirements.txt pyproject.toml uv.lock ./
RUN uv pip install --system -r requirements.txt
COPY app/ ./app/
WORKDIR /app/app
EXPOSE 7860
CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |