media-gen-api / Dockerfile
osnarayana's picture
Modified for Hugging Face deployment
e18f702
raw
history blame
388 Bytes
# Use lightweight Python
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy requirements first for caching
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy project files
COPY . .
# Expose FastAPI port
EXPOSE 8000
# Run FastAPI with uvicorn
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]