Skip to content

Commit

Permalink
remove PREFIX env from more images
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Dec 16, 2024
1 parent 31ad9b6 commit 87ab80e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ubuntu2204/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ RUN apt-get update -y \
# manual builds for hep-specific packages
ENV GET curl --location --silent --create-dirs
ENV UNPACK_TO_SRC tar -xz --strip-components=1 --directory src
ENV PREFIX /usr/local

ENV ONNXRUNTIME_VERSION=1.18.1

RUN ${GET} https://github.com/Kitware/CMake/releases/download/v3.30.0/cmake-3.30.0-Linux-x86_64.tar.gz \
| tar -xz --strip-components=1 --directory ${PREFIX}
| tar -xz --strip-components=1 --directory /usr/local

# Onnx (download of tar.gz does not work out of the box, since the build.sh script requires a git repository)
RUN git clone https://github.com/microsoft/onnxruntime src \
&& (cd src && git checkout v${ONNXRUNTIME_VERSION}) \
&& ./src/build.sh \
--config MinSizeRel \
--cmake_extra_defines CMAKE_INSTALL_PREFIX=/usr/local \
--build_shared_lib \
--build_dir build \
--parallel $(nproc) \
Expand Down
6 changes: 1 addition & 5 deletions ubuntu2404/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,14 @@ RUN apt-get update -y \
clang \
&& apt-get clean -y

# manual builds for hep-specific packages
ENV GET curl --location --silent --create-dirs
ENV UNPACK_TO_SRC tar -xz --strip-components=1 --directory src
ENV PREFIX /usr/local

ENV ONNXRUNTIME_VERSION=1.18.1

# Onnx (download of tar.gz does not work out of the box, since the build.sh script requires a git repository)
RUN git clone https://github.com/microsoft/onnxruntime src \
&& (cd src && git checkout v${ONNXRUNTIME_VERSION}) \
&& ./src/build.sh \
--config MinSizeRel \
--cmake_extra_defines CMAKE_INSTALL_PREFIX=/usr/local \
--build_shared_lib \
--build_dir build \
--skip_tests \
Expand Down

0 comments on commit 87ab80e

Please sign in to comment.