build image fail
c0d3rx opened this issue · 1 comments
c0d3rx commented
Hi, build image sdrangelcli fails, maybe due to an upgraded (v17) npm in debian packages.
I resolved modifying Dockerfile:
diff --git a/sdrangelcli/Dockerfile b/sdrangelcli/Dockerfile
index 0c85a21..95e4175 100644
--- a/sdrangelcli/Dockerfile
+++ b/sdrangelcli/Dockerfile
@@ -1,7 +1,13 @@
FROM node:slim as base
# Install base packages
-RUN apt-get update && apt-get -y install sudo git
+RUN apt-get update && apt-get -y install sudo git curl
+RUN apt-get -y remove npm
+RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
+RUN bash -l -c "source /root/.bashrc"
+RUN cd /root
+RUN bash -l -c "nvm install v16"
+ENV NODE_OPTIONS --openssl-legacy-provider
RUN npm install -g @angular/cli \
&& npm install -g http-server
works also with only adding
ENV NODE_OPTIONS --openssl-legacy-provider
but with a lot of annoyng warnings, installing npm v16 remove all warnings
Thank you for this great sw!
f4exb commented
Yes got that error also. Downgraded node base image to fixed version v16.