diff --git a/Dockerfile b/Dockerfile index 91460e2..b31d3ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..7bf0a21 --- /dev/null +++ b/run.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# Run the analyser +poetry run python -m analyser