Skip to content

Commit

Permalink
Change order of vars to take advantage of cache
Browse files Browse the repository at this point in the history
  • Loading branch information
aranega committed Nov 16, 2023
1 parent cc78268 commit 6eb2e55
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -55,8 +53,6 @@ RUN mkdir -p /opt/workspace
RUN mkdir -p /opt/user




ENV NEURON_HOME=/opt/conda


Expand All @@ -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

Expand Down

0 comments on commit 6eb2e55

Please sign in to comment.