Fix dockerfile and python

This commit is contained in:
James Jennett-Wheeler 2025-06-23 11:30:33 +01:00
parent 69cf48b7c3
commit 2ae936ff67
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,5 @@ COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ ./
COPY database.db ./
CMD "python monitor-planning.py"
CMD "python3 monitor-planning.py"

View File

@ -21,7 +21,9 @@ search_num_weeks = 1
reset_table = False
web_opts = webdriver.ChromeOptions()
web_opts.add_argument('--no-sandbox')
web_opts.add_argument('--headless')
web_opts.add_argument('--disable-dev-shm-usage')
def notify(title, message):
api_url = 'https://hass.jennett-wheeler.co.uk/api/webhook/-Qx6jHsGLHwbBlJpLek5Nj8qS'