diff --git a/Dockerfile b/Dockerfile index 6ea680a..09b03de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ RUN mkdir -p /app COPY package.json package-lock.json /app/ RUN cd /app && npm ci --omit=dev -COPY app.py app_support.py config_page.py http_handler.py provider_bridge.py provider_downloader.py queue_jobs.py queue_page.py search_page.py template_helpers.py title_matching.py watchlist_identity.py watchlist_page.py web_templates.py VERSION CHANGELOG.md favicon.png /app/ +COPY app.py app_support.py config_page.py http_handler.py provider_bridge.py provider_downloader.py provider_updates.py queue_jobs.py queue_page.py search_page.py template_helpers.py title_matching.py watchlist_identity.py watchlist_page.py web_templates.py VERSION CHANGELOG.md favicon.png /app/ COPY providers /app/providers COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh diff --git a/test_app.py b/test_app.py index b1a51ff..19e8a20 100644 --- a/test_app.py +++ b/test_app.py @@ -4357,5 +4357,12 @@ seg-3.ts ) +class DockerfilePackagingTests(unittest.TestCase): + def test_provider_updates_module_is_copied_into_image(self): + dockerfile = (ROOT / "Dockerfile").read_text(encoding="utf-8") + + self.assertIn("provider_updates.py", dockerfile) + + if __name__ == "__main__": unittest.main()