-
Notifications
You must be signed in to change notification settings - Fork 46
/
Dockerfile
33 lines (22 loc) · 850 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
33
FROM s22s/pyspark-notebook:spark-2.3.3-hadoop-2.7
MAINTAINER Astraea, Inc.
ENV RF_LIB_LOC=/usr/local/rasterframes \
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/conda/lib"
USER root
RUN mkdir $RF_LIB_LOC
EXPOSE 4040 4041 4042 4043 4044
# Sphinx (for Notebook->html)
RUN conda install --quiet --yes \
anaconda sphinx nbsphinx shapely numpy folium geopandas geojsonio
# Cleanup pip residuals
RUN rm -rf /home/$NB_USER/.local && \
fix-permissions /home/$NB_USER
# Note: The above step takes an insanely long time in the CONDA_DIR, so commenting it out until we have perm issues.
# fix-permissions $CONDA_DIR
COPY *.whl $RF_LIB_LOC
RUN ls -1 $RF_LIB_LOC/*.whl | xargs pip install
COPY jupyter_notebook_config.py $HOME/.jupyter
COPY examples $HOME/examples
RUN chmod -R +w $HOME/examples
RUN chown -R $NB_UID:$NB_GID $HOME
USER $NB_UID