sonar-scanner/Dockerfile
Guillaume B.B. Van Hemmen bd53914cc3 Update symlink path for Sonar Scanner in Dockerfile
Corrected the symlink path to align with the extracted directory name. This ensures the Sonar Scanner binary is properly accessible from the expected location.
2025-05-19 20:24:05 +02:00

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