From 6eb2e55f03ac3dc7ee6211a1b739d7d05d04066c Mon Sep 17 00:00:00 2001 From: aranega Date: Thu, 16 Nov 2023 07:12:19 -0600 Subject: [PATCH] Change order of vars to take advantage of cache --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5924df05..ff383280 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,6 @@ FROM jupyter/base-notebook:hub-1.5.0 ENV NB_UID=jovyan ENV FOLDER=netpyne ENV NP_LFPYKIT_HEAD_FILE=/home/jovyan/nyhead.mat -ARG BUILD_ARGS="" -ARG WORKSPACE_VERSION=master USER root @@ -55,8 +53,6 @@ RUN mkdir -p /opt/workspace RUN mkdir -p /opt/user - - ENV NEURON_HOME=/opt/conda @@ -67,6 +63,8 @@ RUN jupyter nbextension enable --py --sys-prefix jupyter_geppetto RUN jupyter nbextension enable --py --sys-prefix widgetsnbextension RUN jupyter serverextension enable --py --sys-prefix jupyter_geppetto +ARG BUILD_ARGS="" +ARG WORKSPACE_VERSION=master RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip &&\ python utilities/install.py ${BUILD_ARGS} --workspace $WORKSPACE_VERSION