From d20e5f3760f2efa0275715c05cd63af58d151629 Mon Sep 17 00:00:00 2001 From: Alexander Sergeev Date: Thu, 12 Jan 2023 22:56:59 +0400 Subject: [PATCH] Fix #337 * 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) * 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 Co-authored-by: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com> --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 97a2f185..81ea2b36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +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@latest +RUN npm i -g npm@next-8 RUN npm i -g vega vega-lite vega-cli canvas ENTRYPOINT ["python", "/main.py"]