-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
47 lines (34 loc) · 1.11 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright (c) Mike Harmon.
# Distributed under the terms of the Modified BSD License.
FROM jupyter/base-notebook:python-3.7.6
LABEL maintainer="Jupyter Project <[email protected]>"
USER root
# Install all OS dependencies for fully functional notebook server
RUN apt-get update && apt-get install -yq --no-install-recommends \
build-essential \
git \
libsm6 \
libxext-dev \
libxrender1 \
lmodern \
netcat \
texlive-fonts-extra \
texlive-fonts-recommended \
texlive-latex-base \
texlive-latex-extra \
texlive-xetex \
unzip \
vim \
&& apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER $NB_UID
RUN mkdir /home/$NB_USER/greenbuildings && \
fix-permissions /home/$NB_USER
COPY requirements.txt /home/$NB_USER/greenbuildings/
RUN conda install python==3.7.1 geopandas==0.3.0
RUN pip install -r /home/$NB_USER/greenbuildings/requirements.txt
# Import matplotlib the first time to build the font cache.
ENV XDG_CACHE_HOME /home/$NB_USER/.cache/
RUN MPLBACKEND=Agg python -c "import matplotlib.pyplot" && \
fix-permissions /home/$NB_USER
USER $NB_UID