navora / Dockerfile
divinixx
Restore Dockerfile
438ee9a
raw
history blame contribute delete
467 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install OpenCV dependencies
RUN apt-get update && apt-get install -y \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
libgomp1 \
libgl1 \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY . .
# Expose port
EXPOSE 7860
# Run FastAPI app
CMD ["python", "app_fastapi.py"]