MachineL / Dockerfile
jake2004's picture
Update Dockerfile
4f3d2c1 verified
raw
history blame contribute delete
308 Bytes
FROM python:3.9
WORKDIR /app
# Install system dependencies for OpenCV
RUN apt-get update && apt-get install -y libgl1 libglib2.0-0
# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]