KingHacker9000 commited on
Commit
198c15d
·
1 Parent(s): 9cf01b3

switch setup-7

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -6,7 +6,7 @@ FROM ghcr.io/huggingface/text-generation-inference:3.3.4@sha256:91822fefc613d742
6
  RUN apt-get update && \
7
  DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
8
  build-essential git cmake ninja-build pkg-config curl ca-certificates gnupg software-properties-common \
9
- python3-pip python3.11 python3.11-dev python3.11-venv python3.11-distutils tzdata && \
10
  # Preconfigure timezone to UTC
11
  ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && dpkg-reconfigure --frontend noninteractive tzdata && \
12
  # Add CUDA keyring and repository
@@ -34,10 +34,8 @@ RUN git clone --depth 1 --recursive https://github.com/BachiLi/diffvg.git /tmp/d
34
  sed -i 's/^\s*cmake_minimum_required(VERSION .*$/cmake_minimum_required(VERSION 3.5)/' /tmp/diffvg/pybind11/CMakeLists.txt && \
35
  mkdir /tmp/diffvg/build && cd /tmp/diffvg/build && \
36
  cmake .. \
37
- -DPYTHON_EXECUTABLE=$(which python3) \
38
- -DPython3_ROOT_DIR=$(python3 -c "import sys; print(sys.prefix)") \
39
- -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.11.so \
40
- -DPYTHON_INCLUDE_DIR=/usr/include/python3.11 \
41
  -DCMAKE_BUILD_TYPE=Release \
42
  -DDIFFVG_CUDA=0 && \
43
  make -j$(nproc) && \
 
6
  RUN apt-get update && \
7
  DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
8
  build-essential git cmake ninja-build pkg-config curl ca-certificates gnupg software-properties-common \
9
+ python3-pip python3.11 python3.11-dev python3.11-venv python3.11-distutils python3-dev tzdata && \
10
  # Preconfigure timezone to UTC
11
  ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && dpkg-reconfigure --frontend noninteractive tzdata && \
12
  # Add CUDA keyring and repository
 
34
  sed -i 's/^\s*cmake_minimum_required(VERSION .*$/cmake_minimum_required(VERSION 3.5)/' /tmp/diffvg/pybind11/CMakeLists.txt && \
35
  mkdir /tmp/diffvg/build && cd /tmp/diffvg/build && \
36
  cmake .. \
37
+ -DPython3_EXECUTABLE=$(which python3) \
38
+ -DPython3_FIND_STRATEGY=LOCATION \
 
 
39
  -DCMAKE_BUILD_TYPE=Release \
40
  -DDIFFVG_CUDA=0 && \
41
  make -j$(nproc) && \