Skip to content
Snippets Groups Projects
Commit 95138c36 authored by joel.vonderwe's avatar joel.vonderwe
Browse files

Add node to sonar docker

parent 1249b37e
No related branches found
No related tags found
No related merge requests found
Pipeline #38946 passed
Subproject commit d15be9b16181f5f172d51b13966e0e44bd34f55d Subproject commit 047bc2e9e1c2ef6eed1c04806c2cba8e08bb1c3e
# Node needed to analyze JS/TS files
FROM node:18-slim AS node_base
FROM gcc:14 FROM gcc:14
ARG SONAR_HOST_URL=https://isc-sonar.edu.hesge.ch ARG SONAR_HOST_URL=https://isc-sonar.edu.hesge.ch
RUN apt update && apt install -y curl unzip build-essential make g++ clang && apt clean RUN apt update && apt install -y curl unzip build-essential make g++ clang git-core openssl libssl-dev && apt clean
# Download sonar tools # Download sonar tools
RUN mkdir -p /sonar && \ RUN mkdir -p /sonar && \
...@@ -26,3 +29,5 @@ RUN mkdir -p /usr/src && \ ...@@ -26,3 +29,5 @@ RUN mkdir -p /usr/src && \
USER sonar USER sonar
WORKDIR /usr/src WORKDIR /usr/src
COPY --from=node_base /usr/local/bin /usr/local/bin
COPY --from=node_base /usr/local/lib/node_modules/npm /usr/local/lib/node_modules/npm
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment