From: Jérôme Benoit Date: Mon, 16 Jan 2023 23:01:17 +0000 (+0100) Subject: Allow npm link X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6df7cf69aa22fa295f0fdf9270670ea43bc8455c;p=mbt-docker.git Allow npm link Signed-off-by: Jérôme Benoit --- diff --git a/Dockerfile b/Dockerfile index 948631f..3fe3d33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -71,6 +71,8 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \ | sort -u \ | xargs -r apt-mark manual \ && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ + # for npm link + && chown -R ${USER}:${USER} /usr/local/lib/node_modules \ && ln -s /usr/local/bin/node /usr/local/bin/nodejs \ # smoke tests && node --version \