Skip to content

Commit

Permalink
optimize placement of docker statement to avoid re-downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes-intel committed Sep 18, 2024
1 parent 97ce43e commit 7c8f701
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions dev/docker/onedal-dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
FROM ubuntu:22.04@sha256:adbb90115a21969d2fe6fa7f9af4253e16d45f8d4c1e930182610c4731962658

ARG workdirectory="/sources/oneDAL"

COPY . ${workdirectory}

WORKDIR ${workdirectory}

#Env setup
Expand All @@ -35,6 +32,13 @@ RUN wget --quiet \
# Put conda in path to use conda activate
ENV PATH $CONDA_DIR/bin:$PATH

# Installing environment for bazel
RUN wget https://github.com/bazelbuild/bazelisk/releases/download/v1.18.0/bazelisk-linux-amd64 && \
chmod 755 bazelisk-linux-amd64 && \
mv bazelisk-linux-amd64 /usr/bin/bazel

COPY . ${workdirectory}

# Installing environment for base development dependencies
RUN .ci/env/apt.sh dev-base

Expand All @@ -44,11 +48,6 @@ RUN .ci/env/apt.sh dpcpp
# Installing environment for clang-format
RUN .ci/env/apt.sh clang-format

# Installing environment for bazel
RUN wget https://github.com/bazelbuild/bazelisk/releases/download/v1.18.0/bazelisk-linux-amd64 && \
chmod 755 bazelisk-linux-amd64 && \
mv bazelisk-linux-amd64 /usr/bin/bazel

# Installing openBLAS dependency
RUN .ci/env/openblas.sh

Expand All @@ -57,4 +56,3 @@ RUN ./dev/download_micromkl.sh

# Installing oneTBB dependency
RUN ./dev/download_tbb.sh

0 comments on commit 7c8f701

Please sign in to comment.