Skip to content
Snippets Groups Projects
Commit 7b596e5f authored by joel.vonderwe's avatar joel.vonderwe Committed by michael.minelli
Browse files

Add node to sonar docker

parent c58c3380
Branches
Tags
No related merge requests found
# 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