change jre to 11.0.8
This commit is contained in:
parent
a72c8553b9
commit
68ba2b9418
10
Dockerfile
10
Dockerfile
@ -5,20 +5,22 @@ COPY *.go ./
|
|||||||
COPY vendor ./vendor/
|
COPY vendor ./vendor/
|
||||||
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o drone-sonar
|
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o drone-sonar
|
||||||
|
|
||||||
FROM openjdk:8-jre-alpine
|
FROM openjdk:11.0.8-jre
|
||||||
|
|
||||||
ARG SONAR_VERSION=4.5.0.2216
|
ARG SONAR_VERSION=4.5.0.2216
|
||||||
ARG SONAR_SCANNER_CLI=sonar-scanner-cli-${SONAR_VERSION}
|
ARG SONAR_SCANNER_CLI=sonar-scanner-cli-${SONAR_VERSION}
|
||||||
ARG SONAR_SCANNER=sonar-scanner-${SONAR_VERSION}
|
ARG SONAR_SCANNER=sonar-scanner-${SONAR_VERSION}
|
||||||
|
|
||||||
RUN apk add --no-cache --update nodejs curl
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y nodejs curl \
|
||||||
|
&& apt-get clean
|
||||||
|
|
||||||
COPY --from=build /go/src/github.com/aosapps/drone-sonar-plugin/drone-sonar /bin/
|
COPY --from=build /go/src/github.com/aosapps/drone-sonar-plugin/drone-sonar /bin/
|
||||||
WORKDIR /bin
|
WORKDIR /bin
|
||||||
|
|
||||||
RUN curl https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/${SONAR_SCANNER_CLI}.zip -so /bin/${SONAR_SCANNER_CLI}.zip
|
RUN curl https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/${SONAR_SCANNER_CLI}.zip -so /bin/${SONAR_SCANNER_CLI}.zip
|
||||||
RUN unzip ${SONAR_SCANNER_CLI}.zip \
|
RUN unzip ${SONAR_SCANNER_CLI}.zip \
|
||||||
&& rm ${SONAR_SCANNER_CLI}.zip \
|
&& rm ${SONAR_SCANNER_CLI}.zip
|
||||||
&& apk del curl
|
|
||||||
|
|
||||||
ENV PATH $PATH:/bin/${SONAR_SCANNER}/bin
|
ENV PATH $PATH:/bin/${SONAR_SCANNER}/bin
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user