-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in sdrangelcli #54
Comments
This appears to be a problem with Angular and the base version of the node image. Updating to 18-slim will allow Angular to run, but it will fail in build due to some legacy issues. There has to be a line added after line 24 before the RUN npm install command, that says "ENV NODE_OPTIONS=--openssl-legacy-provider", this will let Angular build the code. The "as" is just simple case issue, capitalize it. I haven't tested my changes yet, but wanted to inform the dev community here that there seems to be a breaking change in the build through the "@angular/cli" in npm. |
Confirmed that the following changes to the Dockerfile allow a successful build.sh execution on Debian 12/Bookworm on a Pi 4: Line 1: change 'as' to 'AS'. Change 'node:16-slim' to 'node:18-slim'
|
I'm trying to make sdrangelcli.
I have a clean ubuntu 24.04 on a virtual machine.
When I build /sdrangel-docker/sdrangelcli.
And I get errors.
[+] Building 88.9s (13/14) docker:default
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 899B 0.0s
=> [internal] load metadata for docker.io/library/node:16-slim 2.1s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 89B 0.0s
=> [base 1/7] FROM docker.io/library/node:16-slim@sha256:3ebf2875c188d22939c6ab080cfb1a4a6248cc86bae600ea8e2326aa03acdb8f 0.0s
=> CACHED [base 2/7] RUN apt-get update && apt-get -y install sudo git 0.0s
=> CACHED [base 3/7] RUN npm install -g @angular/cli && npm install -g http-server 0.0s
=> CACHED [base 4/7] RUN usermod -a -G sudo node && usermod --shell /bin/bash node 0.0s
=> CACHED [base 5/7] RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers 0.0s
=> CACHED [base 6/7] RUN sudo mkdir /opt/build && sudo chown node:node /opt/build 0.0s
=> CACHED [base 7/7] WORKDIR /opt/build 0.0s
=> [sdrangelcli 1/4] RUN git clone https://github.com/f4exb/sdrangelcli.git -b master sdrangelcli && echo "Thu Jul 18 03:24:51 PM UTC 7.0s
=> [sdrangelcli 2/4] WORKDIR /opt/build/sdrangelcli 0.1s
=> ERROR [sdrangelcli 3/4] RUN npm install && ng build --configuration production && mv dist /opt/build && rm -rf * 79.0s
2 warnings found (use --debug to expand):
Dockerfile:25
24 | WORKDIR /opt/build/sdrangelcli
25 | >>> RUN npm install
26 | >>> && ng build --configuration production
27 | >>> && mv dist /opt/build
28 | >>> && rm -rf *
29 |
ERROR: failed to solve: process "/bin/sh -c npm install && ng build --configuration production && mv dist /opt/build && rm -rf *" did not complete successfully: exit code: 3
What could be the problem?
The text was updated successfully, but these errors were encountered: