diff --git a/vre-singleuser-py311/Dockerfile b/vre-singleuser-py311/Dockerfile index 3406fe1..4d36370 100644 --- a/vre-singleuser-py311/Dockerfile +++ b/vre-singleuser-py311/Dockerfile @@ -54,6 +54,18 @@ RUN chown -R $NB_UID /etc/ipython ENV JUPYTER_ENABLE_LAB=yes # Installing WDF-python env + +## HARDCODING ENVIRONMENT VARIABLES +## not using venv, instead we use the base conda env and fixing env vars +ENV LD_LIBRARY_PATH="/opt/conda/lib:$LD_LIBRARY_PATH" +ENV PYTHONPATH="/opt/conda/lib/python3.9:/opt/conda/lib/python3.9/site-packages:$PYTHONPATH" + +## While the installation of pst4 and the use of `venv`, it is needed the `ENV_ROOT` env var +## > echo $ENV_ROOT/ +## > /opt/venv/ +ENV ENV_ROOT="/opt/conda" + + COPY requirements.txt . RUN pip3 install -r requirements.txt