FROM openvino/ubuntu20_runtime:2022.3.0 WORKDIR /home/openvino/kby-ai-face # Xóa repository Intel Graphics cũ gây: # "focal-legacy Release does not have a Release file" RUN find /etc/apt/sources.list.d \ -type f \ \( -name "*.list" -o -name "*.sources" \) \ -print0 2>/dev/null \ | xargs -0 -r grep -Il \ "repositories.intel.com/graphics" \ | xargs -r rm -f RUN sed -i \ '/repositories\.intel\.com\/graphics/d' \ /etc/apt/sources.list 2>/dev/null || true # Cập nhật package và cài dependency RUN apt-get update -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ libcurl4-openssl-dev \ libssl-dev \ libgomp1 \ libpugixml-dev \ ca-certificates \ && rm -rf /var/lib/apt/lists/* # Copy Python dependencies COPY requirements.txt . RUN pip3 install \ --no-cache-dir \ -r requirements.txt # Face SDK COPY libkbyai_facesdk2.so . # Native library COPY libimutils.so /usr/lib/libimutils.so # Python source COPY facesdk.py . COPY facebox.py . COPY demo.py . COPY app.py . # Shell script COPY run.sh . RUN chmod +x run.sh # Examples / data COPY face_examples ./face_examples COPY data ./data # Library path ENV LD_LIBRARY_PATH=/home/openvino/kby-ai-face:/usr/lib:$LD_LIBRARY_PATH # Hugging Face Spaces ENV PORT=7860 EXPOSE 7860 CMD ["./run.sh"]