faceprocessing-api / Dockerfile
saketh-005's picture
Update Dockerfile
f4268de verified
raw
history blame contribute delete
559 Bytes
FROM python:3.10
WORKDIR /app
# Install system dependencies required for insightface + opencv
RUN apt-get update && apt-get install -y \
git \
wget \
curl \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
build-essential \
cmake \
libheif1 \
libheif-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]