Fix Binder Dockerfile
@@ -12,7 +12,8 @@ RUN pip install --upgrade pip
# RUN pip install --no-cache-dir notebook==5.*
# install dependencies - including the dev version of Gammapy
-COPY environment.yml binder.py tmp/
+COPY binder.py tmp/
+RUN curl -o tmp/environment.yml http://gammapy.org/download/install/gammapy-environment-0.8.yml
WORKDIR tmp/
RUN conda update conda
RUN conda install -q -y pyyaml
@@ -31,14 +32,7 @@ RUN adduser --disabled-password \
# copy repo in /home/gammapy
# COPY . ${HOME}
-RUN gammapy download --release=master --dest=${HOME}/gammapy-tutorials notebooks
-
-# remove tutorials using CTA 1DC
-RUN rm ${HOME}/gammapy-tutorials/notebooks-master/analysis_3d.ipynb
-RUN rm ${HOME}/gammapy-tutorials/notebooks-master/cta_1dc_introduction.ipynb
-RUN rm ${HOME}/gammapy-tutorials/notebooks-master/cta_data_analysis.ipynb
-RUN rm ${HOME}/gammapy-tutorials/notebooks-master/simulate_3d.ipynb
-RUN rm ${HOME}/gammapy-tutorials/notebooks-master/spectrum_simulation_cta.ipynb
+RUN gammapy download --dest=${HOME}/gammapy-tutorials tutorials
# setting ownerships
USER root
@@ -46,14 +40,7 @@ RUN chown -R ${NB_UID} ${HOME}
# start JupyterLab server in tutorials dir
USER ${NB_USER}
-WORKDIR ${HOME}/gammapy-tutorials/notebooks-master
+WORKDIR ${HOME}/gammapy-tutorials/notebooks-0.8
# env vars used in tutorials
-RUN git clone https://github.com/gammapy/gammapy-extra.git ${HOME}/gammapy-tutorials/gammapy-extra
-ENV GAMMAPY_EXTRA ${HOME}/gammapy-tutorials/gammapy-extra
-
-RUN git clone https://github.com/gammapy/gamma-cat.git ${HOME}/gammapy-tutorials/gammapy-cat
-ENV GAMMAPY_CAT ${HOME}/gammapy-tutorials/gammapy-cat
-
-RUN git clone https://github.com/gammapy/gammapy-fermi-lat-data.git ${HOME}/gammapy-tutorials/gammapy-fermi-lat-data
-ENV GAMMAPY_FERMI_LAT_DATA ${HOME}/gammapy-tutorials/gammapy-fermi-lat-data
+ENV GAMMAPY_DATA ${HOME}/gammapy-tutorials/gammapy-extra/datasets
