diff --git a/Dockerfile b/Dockerfile index f83ade4..1650c3c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,5 +56,5 @@ COPY fix_nodriver.py ./ RUN . /app/.venv/bin/activate && python fix_nodriver.py COPY . . RUN chmod +x entrypoint.sh -RUN ./entrypoint.sh &&. /app/.venv/bin/activate && poetry run pytest +RUN ./pytest.sh CMD ["./entrypoint.sh", "&&", ".", "/app/.venv/bin/activate", "&&", "python", "main.py"] \ No newline at end of file diff --git a/pytest.sh b/pytest.sh new file mode 100755 index 0000000..318e85d --- /dev/null +++ b/pytest.sh @@ -0,0 +1,3 @@ +if [ "$(uname -m)" == "x86_64" ]; then + ./entrypoint.sh &&. /app/.venv/bin/activate && poetry run pytest +fi \ No newline at end of file