Skip to content

Commit

Permalink
Redo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eculler committed Apr 19, 2023
1 parent e676ec7 commit e7d761a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ RUN conda config --add channels conda-forge
RUN conda config --set channel_priority strict

COPY environment.yml /home/jovyan/
RUN mamba env create -f /home/jovyan/environment.yml
RUN mamba env update -n base -f /home/jovyan/environment.yml
# using ~/.bash_profile instead of ~/.bashrc for non-interactive tty (-it) containers
RUN echo ". /opt/conda/etc/profile.d/conda.sh" >> /home/jovyan/.bash_profile && \
echo "conda deactivate" >> /home/jovyan/.bash_profile && \
echo "conda activate earth-analytics-python" >> /home/jovyan/.bash_profile
RUN . /opt/conda/etc/profile.d/conda.sh && conda activate earth-analytics-python && python -m ipykernel install --user --name earth-analytics-python
echo "conda activate base" >> /home/jovyan/.bash_profile
RUN . /opt/conda/etc/profile.d/conda.sh && conda activate base && python -m ipykernel install --user --name base
RUN source /home/jovyan/.bash_profile

# Install JupyterLab widget extensions
Expand All @@ -23,6 +23,7 @@ RUN jupyter labextension install \
jupyterlab_iframe \
jupyter-leaflet \
jupyter-threejs \
nbgrader \
&& npm cache clean --force

RUN jupyter lab build

0 comments on commit e7d761a

Please sign in to comment.