mhamza-007's picture
update Dockerfile to include libGL for OpenCV compatibility
ae699d5
raw
history blame contribute delete
408 Bytes
FROM python:3.11
RUN apt-get update && apt-get install -y libgl1
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /deepfake-video-detection
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user . /deepfake-video-detection
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]