Docker build failed - npm error
diff --git a/Dockerfile b/Dockerfile
index 9c7e54e..0e5286a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -76,7 +76,8 @@ RUN apk update && \
tar \
xz
-RUN sed -ie "s/^bind-address\s*=\s*127\.0\.0\.1$/#bind-address = 0.0.0.0/" /etc/mysql/my.cnf
+RUN sed -ie "s/^bind-address\s*=\s*127\.0\.0\.1$/#bind-address = 0.0.0.0/" /etc/my.cnf.d/mariadb-server.cnf^M
+RUN sed -ie "s/^skip-networking$/#skip-networking/" /etc/my.cnf.d/mariadb-server.cnf^M
# Install ffmpeg static build version from cdn.shinobi.video
RUN wget https://cdn.shinobi.video/installers/ffmpeg-release-64bit-static.tar.xz && \
$ docker build -t test .
...
...
...
ffmpeg-3.3.4-64bit-static/ffprobe
ffmpeg-3.3.4-64bit-static/qt-faststart
ffmpeg-3.3.4-64bit-static/readme.txt
ffmpeg-3.3.4-64bit-static/ffmpeg
Removing intermediate container d98aea1c62c5
---> e047528fccf2
Step 10/20 : WORKDIR /opt/shinobi
---> Running in 339c88ae6824
Removing intermediate container 339c88ae6824
---> 4fcdd4c05975
Step 11/20 : RUN git clone https://gitlab.com/Shinobi-Systems/Shinobi.git /opt/shinobi && npm i npm@latest -g && npm install pm2 -g && npm install
---> Running in 14088355e102
Cloning into '/opt/shinobi'...
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
npm WARN notsup Unsupported engine for npm@10.5.0: wanted: {"node":"^18.17.0 || >=20.5.0"} (current: {"node":"8.17.0","npm":"6.13.4"})
npm WARN notsup Not compatible with your version of node/npm: npm@10.5.0
+ npm@10.5.0
added 96 packages from 23 contributors, removed 306 packages and updated 124 packages in 15.331s
ERROR: npm v10.5.0 is known not to run on Node.js v8.17.0. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.
ERROR:
/usr/local/lib/node_modules/npm/lib/utils/exit-handler.js:19
const hasLoadedNpm = npm?.config.loaded
^
SyntaxError: Unexpected token .
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at module.exports (/usr/local/lib/node_modules/npm/lib/cli-entry.js:15:23)
The command '/bin/sh -c git clone https://gitlab.com/Shinobi-Systems/Shinobi.git /opt/shinobi && npm i npm@latest -g && npm install pm2 -g && npm install' returned a non-zero code: 1