-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 760 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 760 Bytes
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
FROM jupyter/minimal-notebook
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends libgl1-mesa-glx gcc build-essential \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN conda install gdal cartopy opencv \
&& conda clean -afy
RUN pip install --no-cache-dir netcdf4 nansat
COPY *.py /tmp/
COPY sea_ice_drift /tmp/sea_ice_drift
WORKDIR /tmp
RUN python setup.py install
USER jovyan
WORKDIR /home/jovyan
RUN python -c 'import pythesint as pti; pti.update_all_vocabularies()'
ENV MOD44WPATH=/home/jovyan/MOD44W \
PROJ_LIB=/opt/conda/share/proj
RUN wget -nc -nv -P $MOD44WPATH https://github.com/nansencenter/mod44w/raw/master/MOD44W.tgz \
&& tar -xzf $MOD44WPATH/MOD44W.tgz -C $MOD44WPATH/ \
&& rm $MOD44WPATH/MOD44W.tgz