diff --git a/containers/jug/dev.Dockerfile b/containers/jug/dev.Dockerfile index 5275dab1d4ed21a6432f9104a8247df520f703d2..639da9aad46fd8e9d974d048fb347e5f69f45459 100644 --- a/containers/jug/dev.Dockerfile +++ b/containers/jug/dev.Dockerfile @@ -73,6 +73,11 @@ RUN --mount=type=cache,target=/var/cache/spack-mirror \ && spack mirror add docker /var/cache/spack-mirror \ && spack mirror list +## This variable will change whenevery either spack.yaml or our spack package +## overrides change, triggering a rebuild +ARG CACHE_BUST="hash" +ARG CACHE_NUKE="" + ## Setup our custom environment and package overrides COPY spack $SPACK_ROOT/eic-spack RUN spack repo add --scope site "$SPACK_ROOT/eic-spack" \ @@ -83,10 +88,6 @@ RUN spack repo add --scope site "$SPACK_ROOT/eic-spack" \ && spack env activate . \ && spack concretize -## This variable will change whenevery either spack.yaml or our spack package -## overrides change, triggering a rebuild -ARG CACHE_BUST="hash" -ARG CACHE_NUKE="" ## Now execute the main build (or fetch from cache if possible) ## note, no-check-signature is needed to allow the quicker signature-less