Spaces:
Sleeping
Sleeping
Download Dockerfile from mr2along/FaceRecognition: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/spaces/mr2along/FaceRecognition/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mr2along/FaceRecognition/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mr2along/FaceRecognition/resolve/main/Dockerfile
1.36 kB
| 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岷璸 nh岷璽 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"] |