From 5dac9e7f69fcafedb6ed8d6f0c7b6d838040f1d9 Mon Sep 17 00:00:00 2001 From: Thomas Druez Date: Tue, 15 Aug 2023 11:04:04 +0200 Subject: [PATCH] Add the app dir in the Python path for entry points availability Signed-off-by: Thomas Druez --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index d1acb8506..bc1e987a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,8 @@ ENV VIRTUAL_ENV /opt/$APP_NAME/venv ENV PYTHONUNBUFFERED 1 # Do not write Python .pyc files ENV PYTHONDONTWRITEBYTECODE 1 +# Add the app dir in the Python path for entry points availability +ENV PYTHONPATH $PYTHONPATH:$APP_DIR # OS requirements as per # https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html