Spaces:
Sleeping

KevsDigitalBot / Dockerfile
KevsOno's picture
Update Dockerfile
27262c6 verified
Raw History Blame Contribute Delete
396 Bytes
FROM python:3.10-slim
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Expose the port Gradio/FastAPI uses (7860 for Spaces)
EXPOSE 7860
# Run the FastAPI app with uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]