modeldiet / Dockerfile
HariHaran9597
Deploy ModelDiet FastAPI + Docker to Hugging Face
b33ba27
raw
history blame contribute delete
538 Bytes
# =============================================================
# Dockerfile for ModelDiet - Gemini Proxy with SQLite Logging
# =============================================================
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy dependency list
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy all project files
COPY . .
# Expose FastAPI port
EXPOSE 7860
# Run FastAPI via Uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]