From 9b6dec1e8112dcef5f06f7ec59022ff56d9de696 Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Sat, 27 Apr 2024 18:37:55 +0200 Subject: [PATCH] feat: Pre-install npm dependencies for context-diagrams This allows containers to run in environments without internet connection. --- Dockerfile | 2 ++ capella_model_explorer/backend/explorer.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index afef193..6599136 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,5 +50,7 @@ RUN chmod -R 777 ./frontend/dist/ # Run as non-root user per default USER 1001 +# Pre-install npm dependencies for context diagrams +RUN python -c "from capellambse_context_diagrams import _elkjs; _elkjs._install_required_npm_pkg_versions()" ENTRYPOINT ["/entrypoint.sh"] diff --git a/capella_model_explorer/backend/explorer.py b/capella_model_explorer/backend/explorer.py index cff2fcc..e5cef81 100644 --- a/capella_model_explorer/backend/explorer.py +++ b/capella_model_explorer/backend/explorer.py @@ -77,7 +77,6 @@ async def update_last_interaction_time(request: Request, call_next): not request.url.path == "/metrics" and not request.url.path == "/favicon.ico" ): - print(request.url.path) self.last_interaction = time.time() return await call_next(request)