From 2a01fdc32e8b60c36957960d32b3d418b741f153 Mon Sep 17 00:00:00 2001 From: ab Date: Tue, 3 Oct 2023 15:46:03 +0200 Subject: [PATCH] Fix node & yarn not found in webui build --- base/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/Dockerfile b/base/Dockerfile index 9d947ae..aed6da4 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -12,7 +12,8 @@ ENV DEBIAN_FRONTEND noninteractive RUN apt-get update \ && apt-get -y install gcc cmake autoconf libtool pkg-config libmnl-dev libyaml-dev apt-transport-https ca-certificates \ && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \ - && bash -c 'source ~/.bashrc && nvm install --lts && npm install -g yarn' + && bash -c 'source ~/.bashrc && nvm install --lts && npm install -g yarn' \ + && bash -c 'source ~/.bashrc && ln -s $(which node) $(which yarn) /usr/bin/' # Clean apt cache RUN apt-get clean