Chittrarasu's picture
deploy
8a14cfe
raw
history blame
480 Bytes
# Use official Python 3.9 image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy requirements file
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Create cache directory with proper permissions
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
# Copy application code
COPY . .
# Expose port 8000
EXPOSE 7860
# Start FastAPI with uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]