Use ENTRYPOINT and CMD (#482)

This commit is contained in:
Bas Nijholt 2023-03-26 22:07:07 -07:00 committed by GitHub
commit eb43e1755e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"]