flan-t5-chatbot / Dockerfile
MASSJ77's picture
Update Dockerfile
dab50b7 verified
raw
history blame contribute delete
443 Bytes
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /code
# Copy dependencies first (better caching)
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY app.py .
# Run FastAPI with Uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]