From eb43e1755e0dd24d8b598a3e8da83cad24d5d67a Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sun, 26 Mar 2023 22:07:07 -0700 Subject: [PATCH] Use ENTRYPOINT and CMD (#482) --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1fe5a1ff..45522da8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,7 @@ RUN pip3 install $(python3 /app/test_dependencies.py) --use-pep517 WORKDIR /core -CMD ["python3", \ +ENTRYPOINT ["python3", \ # Enable Python development mode "-X", "dev", \ # Run pytest @@ -59,7 +59,7 @@ CMD ["python3", \ # Print logs in color "--color=yes", \ # Print a count of test results in the console - "-o", "console_output_style=count", \ - # Run tests in the 'tests/components/adaptive_lighting' directory - "tests/components/adaptive_lighting" \ - ] + "-o", "console_output_style=count"] + +# Run tests in the 'tests/components/adaptive_lighting' directory +CMD ["tests/components/adaptive_lighting"]