generated from cu-esiil-edu/first-map-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (21 loc) · 882 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM jupyter/minimal-notebook:python-3.11
# Installing package for libmamba
USER root
RUN apt-get update && \
apt-get install -y \
libfmt-dev
USER jovyan
# Set up conda
RUN conda update conda
RUN conda config --remove channels conda-forge
RUN conda config --add channels conda-forge
# Create environment
COPY environment.yml /home/jovyan/
RUN conda env update -n base -f /home/jovyan/environment.yml
# Activating environment
RUN echo ". /opt/conda/etc/profile.d/conda.sh" >> /home/jovyan/.bash_profile && \
echo "conda deactivate" >> /home/jovyan/.bash_profile && \
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
# Using ~/.bash_profile instead of ~/.bashrc for non-interactive tty (-it) containers
RUN source /home/jovyan/.bash_profile