TrueVox / Dockerfile
tannuiscoding's picture
Fix deployment for Hugging Face Spaces using gunicorn
0ae4642
raw
history blame
368 Bytes
# Use Python base image
FROM python:3.10-slim
# Set work directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your code
COPY . .
# Expose the port Hugging Face expects
EXPOSE 7860
# Run your Flask app with gunicorn
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:7860", "app:app"]