adas / Dockerfile
Aadityaramrame's picture
Update Dockerfile
83a79d5 verified
raw
history blame contribute delete
615 Bytes
# Use lightweight official Python image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy all files to container
COPY . /app
# Install system dependencies (important for OpenCV, Torch, etc.)
RUN apt-get update && apt-get install -y \
gcc \
ffmpeg \
libsm6 \
libxext6 \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --upgrade pip && pip install --no-cache-dir cloudinary && pip install --no-cache-dir -r requirements.txt
# Expose port for FastAPI
EXPOSE 7860
# Run FastAPI app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]