ksk76's picture
Create Dockerfile
3e2e34f verified
Raw History Blame Contribute Delete
409 Bytes
# Use official Python image
FROM python:3.11
# Set working directory
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your app (server.py, ui folder, agents, etc.)
COPY . .
# Hugging Face exposes port 7860
EXPOSE 7860
# Start FastAPI via Uvicorn
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]