Skip to content

Commit

Permalink
Add Run Script
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPlowman committed Sep 30, 2024
1 parent daf607c commit 5a7ecef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ WORKDIR /
RUN mkdir -p /statistics && \
apk add --no-cache git=2.45.2-r0

COPY pyproject.toml poetry.lock ./
COPY run.sh /
RUN chmod +x /run.sh

COPY pyproject.toml poetry.lock /

RUN pip install --no-cache-dir poetry==1.8.3 \
&& poetry install --no-dev

ENV PYTHONPATH=/

ENTRYPOINT [ "poetry", "run", "python", "-m", "analyser" ]
ENTRYPOINT [ "sh", "run.sh" ]
4 changes: 4 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# Run the analyser
poetry run python -m analyser

0 comments on commit 5a7ecef

Please sign in to comment.