-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·32 lines (25 loc) · 950 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
26
27
28
29
30
31
32
FROM continuumio/anaconda3
WORKDIR /usr/src/av_py_env
# copies requirements.txt from host dir to container work dir
COPY . .
#setup conda environment
# Make RUN commands use `bash --login`:
SHELL ["/bin/bash", "--login", "-c"]
RUN conda create -n av_py_env -y python=3.8
RUN conda init bash
# Activate the environment, and make sure it's activated:
RUN echo "conda activate av_py_env" > ~/.bashrc
RUN conda activate av_py_env
# Install libraries needed for API and plotting
RUN conda install -y -c conda-forge cartopy
RUN conda install -y pandas
RUN pip install jupyterlab
RUN pip install cmocean
RUN pip install seaborn
# install humor sans font
RUN apt install fonts-humor-sans
# install so that env will show up on jupyter notebook
RUN conda install -y -c anaconda ipykernel
RUN python -m ipykernel install --user --name=av_py_env
# install progress bar
CMD ["jupyter", "lab", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root"]