forked from green-code-initiative/creedengo-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 660 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (17 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ARG MAVEN_BUILDER=3-openjdk-17-slim
#ARG SONARQUBE_VERSION=24.12.0.100206-community
#ARG SONARQUBE_VERSION=25.3.0.104237-community
#ARG SONARQUBE_VERSION=25.9.0.112764-community
#ARG SONARQUBE_VERSION=25.10.0.114319-community
ARG SONARQUBE_VERSION=25.11.0.114957-community
#ARG MAVEN_BUILDER=3-openjdk-11-slim
#ARG SONARQUBE_VERSION=9.9.8-community
FROM maven:${MAVEN_BUILDER} AS builder
COPY . /usr/src/creedengo
WORKDIR /usr/src/creedengo
COPY src src/
COPY pom.xml tool_build.sh ./
RUN ./tool_build.sh
FROM sonarqube:${SONARQUBE_VERSION}
COPY --from=builder /usr/src/creedengo/target/creedengo-*.jar /opt/sonarqube/extensions/plugins/
USER sonarqube