Skip to content

Commit

Permalink
Add Dockerfile for v0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Bultako committed Oct 2, 2019
1 parent 3bce8f1 commit 661d142
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Expand Up @@ -10,7 +10,7 @@ RUN pip install --upgrade pip

# 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.13-environment.yml
RUN curl -o tmp/environment.yml https://gammapy.org/download/install/gammapy-0.14-environment.yml

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

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

# 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.13
WORKDIR ${HOME}/gammapy-tutorials/notebooks-0.14

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

0 comments on commit 661d142

Please sign in to comment.