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'