Spaces:
Running
Running
FROM python:3.10-slim | |
# Install wget and git for HF Space requirements | |
RUN apt-get update && apt-get install -y \ | |
wget \ | |
git \ | |
&& rm -rf /var/lib/apt/lists/* | |
WORKDIR /app | |
# Copy and install requirements | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy application code | |
COPY app.py . | |
EXPOSE 7860 | |
# Start the application | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |