Skip to content

Commit 21cb7f4

Browse files
committed
Attempt to fix "ImportError: libpoppler.so.76: cannot open shared object file: No such file or directory"
1 parent 71cead3 commit 21cb7f4

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

rf-notebook/src/main/docker/Dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,19 @@ RUN cd /usr/local && ln -s spark-${APACHE_SPARK_VERSION}-bin-hadoop${HADOOP_VERS
3434
ENV SPARK_HOME /usr/local/spark
3535
ENV PYTHONPATH $SPARK_HOME/python:$SPARK_HOME/python/lib/py4j-0.10.7-src.zip
3636
ENV SPARK_OPTS --driver-java-options=-Xms1024M --driver-java-options=-Xmx4096M --driver-java-options=-Dlog4j.logLevel=info
37+
ENV RF_LIB_LOC=/usr/local/rasterframes
3738

38-
COPY conda_cleanup.sh .
39-
RUN chmod u+x conda_cleanup.sh
39+
COPY conda_cleanup.sh $RF_LIB_LOC/
40+
RUN chmod u+x $RF_LIB_LOC/conda_cleanup.sh
4041

4142
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/conda/lib"
4243
# Sphinx (for Notebook->html) and pyarrow (from pyspark build)
4344
RUN \
44-
conda install --quiet --yes pyarrow \
45-
anaconda sphinx nbsphinx shapely numpy folium geopandas geojsonio rasterio descartes && \
46-
./conda_cleanup.sh $NB_USER $CONDA_DIR
47-
48-
ENV RF_LIB_LOC=/usr/local/rasterframes
49-
RUN mkdir $RF_LIB_LOC
45+
conda install --quiet --yes --channel conda-forge \
46+
pyarrow anaconda sphinx nbsphinx shapely numpy folium geopandas geojsonio rasterio descartes && \
47+
$RF_LIB_LOC/conda_cleanup.sh $NB_USER $CONDA_DIR
5048

51-
COPY *.whl $RF_LIB_LOC
49+
COPY *.whl $RF_LIB_LOC/
5250
COPY jupyter_notebook_config.py $HOME/.jupyter
5351
COPY examples $HOME/examples
5452

0 commit comments

Comments
 (0)