Skip to content

Commit

Permalink
fix binder v0.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Bultako committed Sep 23, 2021
1 parent 12b9cd0 commit 83006fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Expand Up @@ -10,7 +10,7 @@ RUN apt install -y curl

# install dependencies - including the stable version of Gammapy
COPY binder.py tmp/
RUN curl -o tmp/environment.yml https://gammapy.org/download/install/gammapy-0.18-environment.yml
RUN curl -o tmp/environment.yml https://gammapy.org/download/install/gammapy-0.18.1-environment.yml

WORKDIR tmp/
RUN conda update conda
Expand All @@ -29,16 +29,16 @@ RUN adduser --disabled-password \
${NB_USER}

# download tutorials and datasets
RUN gammapy download notebooks --out=${HOME}/gammapy-tutorials --release=0.18
RUN gammapy download datasets --out=${HOME}/gammapy-datasets --release=0.18
RUN gammapy download notebooks --out=${HOME}/gammapy-tutorials --release=0.18.1
RUN gammapy download datasets --out=${HOME}/gammapy-datasets --release=0.18.1

# setting ownerships
USER root
RUN chown -R gammapy:gammapy ${HOME}

# start JupyterLab server in tutorials dir
USER ${NB_USER}
WORKDIR ${HOME}/gammapy-tutorials/notebooks-0.18
WORKDIR ${HOME}/gammapy-tutorials/notebooks-0.18.1

# env vars used in tutorials
ENV GAMMAPY_DATA ${HOME}/gammapy-datasets

0 comments on commit 83006fc

Please sign in to comment.