-
Notifications
You must be signed in to change notification settings - Fork 21
/
Dockerfile
28 lines (22 loc) · 944 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM adoptopenjdk:14-hotspot
LABEL maintainers = "strizhhh@mail.ru, nixel2007@gmail.com"
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl \
git \
openssh-client \
unzip \
&& rm -rf \
/var/lib/apt/lists/* \
/var/cache/debconf
ENV TZ=Europe/Moscow \
SONAR_SCANNER_VERSION="4.3.0.2102" \
SONAR_SCANNER_HOME=/usr/lib/sonar-scanner
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /usr/src
RUN curl --insecure -o ./sonarscanner.zip -L https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip && \
unzip sonarscanner.zip && \
rm sonarscanner.zip && \
mv sonar-scanner-${SONAR_SCANNER_VERSION} /usr/lib/sonar-scanner && \
ln -s /usr/lib/sonar-scanner/bin/sonar-scanner /usr/local/bin/sonar-scanner
ENTRYPOINT ["sonar-scanner"]