Mise à jour de 'Dockerfile'
continuous-integration/drone/push Build is passing Details

stryker
Thomas BELLEMBOIS 2 months ago
parent 8e2386b637
commit 9a624d0c6f

@ -1,14 +1,30 @@
FROM debian:bookworm
FROM aosapps/drone-sonar-plugin AS base
RUN apt update && apt -y install sshpass rsync
FROM ghcr.io/jqlang/jq:1.7.1 AS jq
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine
WORKDIR /usr/local
RUN mkdir /root/.ssh
COPY ./id_rsa /root/.ssh/
COPY ./id_rsa /root/.ssh
RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/*
COPY --from=base /bin/drone-sonar /bin/
WORKDIR /bin
RUN apk update && apk add --update openssh && apk add openjdk17-jre bash nodejs && apk add jq && apk add rsync && rm -rf /tmp/* /var/cache/apk/*
RUN ls /usr/lib/jvm/
RUN dotnet tool install --global dotnet-sonarscanner
RUN dotnet tool install --global dotnet-reportgenerator-globaltool
ENV JAVA_HOME /usr/lib/jvm/default-jvm/
ENV PATH ${PATH}:${JAVA_HOME}/bin
ENV PATH $PATH:/root/.dotnet/tools
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
ENTRYPOINT /bin/drone-sonar
#ENTRYPOINT [ "/entrypoint.sh" ]
Loading…
Cancel
Save