watermelonPhenotyping / Dockerfile
crabbly's picture
Update Dockerfile
5620334 verified
Raw
History Blame Contribute Delete
554 Bytes
# Use official Python image
FROM python:3.11-slim
# Install the necessary Linux packages so standard OpenCV runs flawlessly
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
libx11-xcb1 \
libxcb1 \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
# Install dependencies cleanly (no pip uninstall hacks!)
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]