Mise à jour de 'Dockerfile'
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
f631fc9159
commit
6b1c0ea5b8
@ -1,20 +1,3 @@
|
|||||||
FROM aosapps/drone-sonar-plugin AS base
|
FROM php:8.1-apache
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine
|
RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql
|
||||||
|
COPY ./ /var/www/html/
|
||||||
COPY --from=base /bin/drone-sonar /bin/
|
|
||||||
WORKDIR /bin
|
|
||||||
|
|
||||||
RUN apk update && apk add openjdk11-jre nodejs && rm -rf /tmp/* /var/cache/apk/*
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
RUN dotnet sonarscanner begin /k:"ConsEco" /d:sonar.host.url="https://codefirst.iut.uca.fr/sonar" /d:sonar.login="sqp_ffc02968e133d03daeb917e8c2e6f243a80d087a"
|
|
||||||
RUN dotnet build
|
|
||||||
RUN dotnet sonarscanner end /d:sonar.login="sqp_ffc02968e133d03daeb917e8c2e6f243a80d087a"
|
|
Loading…
Reference in new issue