Skip to content

Commit

Permalink
Add Dockerfile for v0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Bultako committed May 31, 2019
1 parent 72a510e commit 10d3e2e
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.11-environment.yml
RUN curl -o tmp/environment.yml https://gammapy.org/download/install/gammapy-0.12-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.11
RUN gammapy download datasets --out=${HOME}/gammapy-datasets --release=0.11
RUN gammapy download notebooks --out=${HOME}/gammapy-tutorials --release=0.12
RUN gammapy download datasets --out=${HOME}/gammapy-datasets --release=0.12

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

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

0 comments on commit 10d3e2e

Please sign in to comment.