diff --git a/projects/amdsmi/py-interface/Dockerfile b/projects/amdsmi/py-interface/Dockerfile index 5218f76946..d158c521bf 100644 --- a/projects/amdsmi/py-interface/Dockerfile +++ b/projects/amdsmi/py-interface/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:latest +FROM ubuntu:22.04 # do not prompt in apt # https://github.com/moby/moby/issues/4032#issuecomment-163689851 @@ -25,7 +25,7 @@ RUN apt update --yes \ && apt clean \ && rm -rf /var/cache/apt/ /var/lib/apt/lists/* -WORKDIR /var/tmp +# install clang RUN TEMPDIR=$(mktemp -d) \ && cd $TEMPDIR \ && wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh \ @@ -34,6 +34,13 @@ RUN TEMPDIR=$(mktemp -d) \ && python3 -m pip install --no-cache-dir clang==16.0.1 ctypeslib2==2.3.4 -U \ && rm -rf $TEMPDIR +# install cmake +RUN TEMPDIR=$(mktemp -d) \ + && cd $TEMPDIR \ + && wget https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-linux-x86_64.sh && chmod +x cmake*.sh \ + && ./cmake*.sh --skip-license --prefix=/usr \ + && rm -rf $TEMPDIR + WORKDIR /src CMD cp -r /src /tmp/src \ && cd /tmp/src \