From 7910d756691a3146238664c8cf4018b8f2b44689 Mon Sep 17 00:00:00 2001 From: Jack Plowman <62281988+JackPlowman@users.noreply.github.com> Date: Mon, 30 Sep 2024 08:44:16 +0100 Subject: [PATCH] chore: Update Dockerfile permissions and Python path (#84) # Pull Request ## Description This change modifies the Dockerfile to enhance the execution environment for the analyser module: 1. Adds a `chmod +x analyser` command to ensure the analyser is executable. 2. Sets the `PYTHONPATH` environment variable to the root directory (`/`). These modifications improve the reliability and flexibility of the container setup, ensuring proper permissions and module accessibility. fixes #86 --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6ffa833..5858004 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,7 @@ RUN pip install --no-cache-dir poetry==1.8.3 \ COPY analyser ./analyser +RUN chmod +x analyser +ENV PYTHONPATH=/ + ENTRYPOINT [ "poetry", "run", "python", "-m", "analyser" ]