FROM python:3.12-slim WORKDIR /usr/src/app COPY docker/debian.sources /etc/apt/sources.list.d COPY blackbox_yolov5 ./blackbox_yolov5 RUN apt-get update && \ apt-get install libglib2.0-0 libgl1 -y && \ pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn --default-timeout=60 --no-cache-dir -r ./blackbox_yolov5/requirements.txt EXPOSE 5000 ENTRYPOINT ["python", "./blackbox_yolov5/run.py"]