Corrected the symlink path to align with the extracted directory name. This ensures the Sonar Scanner binary is properly accessible from the expected location.
11 lines
467 B
Docker
11 lines
467 B
Docker
FROM node:22
|
|
|
|
LABEL maintainer="guillaume@van-hemmen.com"
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install wget unzip && \
|
|
cd /root/ && \
|
|
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-7.1.0.4889-linux-x64.zip && \
|
|
unzip sonar-scanner-cli-7.1.0.4889-linux-x64.zip && \
|
|
ln -sf /root/sonar-scanner-7.1.0.4889-linux-x64/bin/sonar-scanner /usr/local/bin/sonar-scanner && \
|
|
/usr/local/bin/sonar-scanner --version
|