forked from Venafi/vcert
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (14 loc) · 701 Bytes
/
Copy pathDockerfile
File metadata and controls
19 lines (14 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM golang:1.26.3@sha256:2d6c80227255c3112a4d08e67ba98e58efd3846daf15d9d7d4c389565d881b1a
ENV SONAR_SCANNER_VERSION="4.6.2.2472"
# Installing sonar-scanner tool
WORKDIR /root
RUN apt-get update
RUN apt-get install -y wget unzip
RUN wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}-linux.zip
RUN unzip sonar-scanner-cli-${SONAR_SCANNER_VERSION}-linux.zip
RUN rm sonar-scanner-cli-${SONAR_SCANNER_VERSION}-linux.zip
RUN mv ./sonar-scanner-${SONAR_SCANNER_VERSION}-linux ./sonar-scanner
ENV PATH="/root/sonar-scanner/bin:${PATH}"
COPY . /go/src/github.com/Venafi/vcert/v5
WORKDIR /go/src/github.com/Venafi/vcert/v5
CMD ["/bin/bash" ]