diff --git a/docker/orthanc/AmazonLinux2Dockerfile b/docker/orthanc/AmazonLinux2Dockerfile index 27a361e..54fb538 100644 --- a/docker/orthanc/AmazonLinux2Dockerfile +++ b/docker/orthanc/AmazonLinux2Dockerfile @@ -67,17 +67,19 @@ RUN mkdir -p /build RUN mkdir -p /scripts RUN mkdir -p /third-party-downloads +# download most commonly used third-party files to avoid downloading too many files from UCLouvain servers when building +WORKDIR /third-party-downloads + # RUN dnf search aws-sdk-cpp --showduplicates # RUN dnf -y update && \ # dnf -y install aws-sdk-cpp\aws-cpp-sdk-s3 && \ # dnf clean all -RUN git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp.git && cd aws-sdk-cpp && mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_ONLY="s3" && make -j$(nproc) && make install -RUN ls /usr/local/include/aws -RUN tar cf aws-sdk-cpp-1.11.178.tar.gz /usr/local/include/aws +RUN git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp.git +# && cd aws-sdk-cpp && mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_ONLY="s3" && make -j$(nproc) && make install +# RUN ls /usr/local/include/aws +RUN ls aws-sdk-cpp +RUN tar cf aws-sdk-cpp-1.11.178.tar.gz -C aws-sdk-cpp . - -# download most commonly used third-party files to avoid downloading too many files from UCLouvain servers when building -WORKDIR /third-party-downloads RUN wget https://public-files.orthanc.team/third-party-downloads/VolView-4.1.1.tar.gz RUN wget https://public-files.orthanc.team/third-party-downloads/aws/aws-c-auth-0.7.1.tar.gz RUN wget https://public-files.orthanc.team/third-party-downloads/aws/aws-c-cal-0.6.1.tar.gz