diff --git a/Dockerfile b/Dockerfile index 9d406ce..e9445e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,29 +1,15 @@ -FROM aosapps/drone-sonar-plugin AS base +FROM debian:bookworm -FROM ghcr.io/jqlang/jq:1.7.1 AS jq +RUN apt update && apt -y install sshpass rsync doxygen nodejs npm -FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine +WORKDIR /usr/local +RUN npm install docusaurus -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 mkdir /root/.ssh +COPY ./id_rsa /root/.ssh/ +RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/* -# WORKDIR /usr/local +COPY entrypoint.sh / +RUN chmod +x /entrypoint.sh -# RUN mkdir /root/.ssh -# RUN ssh-copy-id -i ./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 jq --help -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 - -ENTRYPOINT /bin/drone-sonar \ No newline at end of file +ENTRYPOINT [ "/entrypoint.sh" ] \ No newline at end of file