From 247690de141e96e7516772b8c8692a4f24b0cf9e Mon Sep 17 00:00:00 2001 From: Alexander Bushev Date: Mon, 24 Oct 2022 11:02:21 +0300 Subject: [PATCH] Update Dockerfile update maven home --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff5d779..ada0edf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,9 +23,9 @@ RUN chmod a+wrx /entrypoint.sh CMD ["/entrypoint.sh"] ### Install maven -ARG MVN_HOME=/usr/share/maven -COPY --from=maven ${MVN_HOME} ${MVN_HOME} -RUN ln -s ${MVN_HOME} /opt/maven +ENV MAVEN_HOME=/usr/share/maven +COPY --from=maven /usr/share/maven ${MAVEN_HOME} +RUN ln -s ${MAVEN_HOME} /opt/maven ### Install Sonar Scanner ARG SONAR_DIR=/opt/sonar-scanner @@ -34,7 +34,7 @@ ENV SONAR_SCANNER_HOME ${SONAR_DIR} # Update capabilities as RUN_USER USER ${RUN_USER} -RUN /bamboo-update-capability.sh "system.builder.mvn3.Maven 3.8.6" ${MVN_HOME} \ +RUN /bamboo-update-capability.sh "system.builder.mvn3.Maven 3.8.6" ${MAVEN_HOME} \ && /bamboo-update-capability.sh "system.git.executable" /usr/bin/git \ && /bamboo-update-capability.sh "Docker" /usr/bin/docker \ && /bamboo-update-capability.sh "system.builder.sos" ${SONAR_DIR}