Brandmeister Last Heard Monitor/Notifier

refactor(Dockerfile): remove unnecessary environment variable and use ENTRYPOINT for script execution

Remove the DEBUG environment variable as it is not essential for the Dockerfile and can be set dynamically at runtime if needed. Replace CMD with ENTRYPOINT to ensure the Python script is executed as the main process of the container, providing better control over the container's lifecycle and allowing additional arguments to be passed if necessary.

+2 -5
+2 -5
Dockerfile
··· 10 10 # Install any necessary dependencies 11 11 RUN pip install --no-cache-dir -r requirements.txt 12 12 13 - # Copy the current directory contents into the container at /app 13 + # Copy the current directory contents into the container 14 14 COPY . /app 15 15 16 - # Define environment variables (optional, can also set dynamically at runtime) 17 - ENV DEBUG=true 18 - 19 16 # Run the Python script 20 - CMD ["python", "bm_monitor.py"] 17 + ENTRYPOINT ["python", "/app/bm_monitor.py"]