diff --git a/R/Dockerfile b/R/Dockerfile index bbc1d71..afd6371 100644 --- a/R/Dockerfile +++ b/R/Dockerfile @@ -51,6 +51,7 @@ RUN R -f /tmp/install.R # install the python dependencies COPY requirements.txt /tmp/ -RUN pip3 install -r /tmp/requirements.txt --no-cache-dir +RUN pip3 install -r /tmp/requirements.txt --no-cache-dir && \ + rm -rf ${HOME}/.renku/venv COPY --from=builder ${HOME}/.renku/venv ${HOME}/.renku/venv diff --git a/bioc/Dockerfile b/bioc/Dockerfile index 0365506..3ae1daa 100644 --- a/bioc/Dockerfile +++ b/bioc/Dockerfile @@ -51,6 +51,7 @@ RUN R -f /tmp/install.R # install the python dependencies COPY requirements.txt /tmp/ -RUN pip3 install -r /tmp/requirements.txt --no-cache-dir +RUN pip3 install -r /tmp/requirements.txt --no-cache-dir && \ + rm -rf ${HOME}/.renku/venv COPY --from=builder ${HOME}/.renku/venv ${HOME}/.renku/venv diff --git a/julia/Dockerfile b/julia/Dockerfile index b5f2394..43da9b2 100644 --- a/julia/Dockerfile +++ b/julia/Dockerfile @@ -56,6 +56,7 @@ RUN mamba env update -q -f /tmp/environment.yml && \ COPY Project.toml Manifest.toml /tmp/ RUN mkdir /tmp/julia-pkg && \ cp /tmp/Project.toml /tmp/Manifest.toml /tmp/julia-pkg/ && \ - julia -e'using Pkg; Pkg.activate("/tmp/julia-pkg/"); Pkg.instantiate(); Pkg.precompile()' + julia -e'using Pkg; Pkg.activate("/tmp/julia-pkg/"); Pkg.instantiate(); Pkg.precompile()' && \ + rm -rf ${HOME}/.renku/venv COPY --from=builder ${HOME}/.renku/venv ${HOME}/.renku/venv diff --git a/minimal/Dockerfile b/minimal/Dockerfile index cddd470..922e888 100644 --- a/minimal/Dockerfile +++ b/minimal/Dockerfile @@ -57,4 +57,6 @@ FROM ${RENKU_BASE_IMAGE} # conda clean -y --all && \ # conda env export -n "root" +RUN rm -rf ${HOME}/.renku/venv + COPY --from=builder ${HOME}/.renku/venv ${HOME}/.renku/venv diff --git a/python/Dockerfile b/python/Dockerfile index 2320150..2386f5b 100644 --- a/python/Dockerfile +++ b/python/Dockerfile @@ -50,6 +50,7 @@ COPY requirements.txt environment.yml /tmp/ RUN mamba env update -q -f /tmp/environment.yml && \ /opt/conda/bin/pip install -r /tmp/requirements.txt --no-cache-dir && \ mamba clean -y --all && \ - mamba env export -n "root" + mamba env export -n "root" && \ + rm -rf ${HOME}/.renku/venv COPY --from=builder ${HOME}/.renku/venv ${HOME}/.renku/venv