Skip to content

Commit

Permalink
chore: Update Dockerfile permissions and Python path (#84)
Browse files Browse the repository at this point in the history
# 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
  • Loading branch information
JackPlowman authored Sep 30, 2024
1 parent 1920a47 commit 7910d75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit 7910d75

Please sign in to comment.