From 2ae936ff6792366c9af9a7ef10cc2cb6cc13a2c2 Mon Sep 17 00:00:00 2001 From: James Jennett-Wheeler Date: Mon, 23 Jun 2025 11:30:33 +0100 Subject: [PATCH] Fix dockerfile and python --- Dockerfile | 3 +-- app/monitor-planning.py | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 711191a..f3c5276 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" \ No newline at end of file +CMD "python3 monitor-planning.py" \ No newline at end of file diff --git a/app/monitor-planning.py b/app/monitor-planning.py index 37034bb..8894ebe 100644 --- a/app/monitor-planning.py +++ b/app/monitor-planning.py @@ -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'