diff --git a/Dockerfile b/Dockerfile index 70d2eee..9fa465e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,8 @@ USER root ########################### # Requested for DSC170 WI23 +COPY requirements.txt /home/jovyan + RUN apt update -y && \ apt-get install software-properties-common -y && \ add-apt-repository universe && \ @@ -20,7 +22,7 @@ RUN pip install --upgrade nbconvert RUN mamba install -c conda-forge geopandas cartopy pygeos pysal contextily osmnx jupyterlab_widgets -y RUN pip uninstall pillow fiona -y && \ - pip install -r requirements.txt && \ + pip install -r ~/requirements.txt && \ pip install --upgrade fiona RUN jupyter nbextension enable --py widgetsnbextension --sys-prefix && \ @@ -33,6 +35,7 @@ RUN jupyter nbextension enable --py --sys-prefix arcgis && \ USER $NB_UID COPY arcgis_test.ipynb /opt +RUN rm -rf /home/jovyan/requirements.txt ENV USE_PYGEOS=0