File size: 442 Bytes
f7d04cc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | FROM python:3.12-slim
# Set environment variables
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
WORKDIR /app
# Install FastAPI and Uvicorn
RUN pip install --no-cache-dir fastapi uvicorn
# Copy deployment files
COPY app.py /app/app.py
COPY README.md /app/README.md
COPY Agent.md /app/Agent.md
# Hugging Face Spaces port is 7860
EXPOSE 7860
# Run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|