From a213c77b87ef462b08815e204b836a8f727e0f99 Mon Sep 17 00:00:00 2001 From: pseusys Date: Thu, 8 Dec 2022 05:36:38 +0300 Subject: [PATCH 1/2] NPM update removed [because of breaking changes introduced in NPMv9](https://github.com/altair-viz/altair_saver/issues/113), NPMv8 is provided with container [by default](https://hub.docker.com/r/nikolaik/python-nodejs) --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 97a2f185..8f3cd798 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,6 @@ ENV PATH "$PATH:/home/root/.npm-global/bin" RUN python -m pip install --upgrade pip wheel setuptools RUN pip install -r requirements.txt RUN npm -g config set user root -RUN npm i -g npm@latest RUN npm i -g vega vega-lite vega-cli canvas ENTRYPOINT ["python", "/main.py"] From b54e0776c87e724466913e8aecad8177c050fe2a Mon Sep 17 00:00:00 2001 From: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com> Date: Fri, 13 Jan 2023 00:25:24 +0530 Subject: [PATCH 2/2] Set `npm` to not go beyond v9 because of https://github.com/altair-viz/altair_saver/issues/113 v9 has a breaking change for our dependency --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 8f3cd798..81ea2b36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ ENV PATH "$PATH:/home/root/.npm-global/bin" RUN python -m pip install --upgrade pip wheel setuptools RUN pip install -r requirements.txt RUN npm -g config set user root +RUN npm i -g npm@next-8 RUN npm i -g vega vega-lite vega-cli canvas ENTRYPOINT ["python", "/main.py"]