Skip to content

Commit 4c34edd

Browse files
authored
Merge pull request #109 from Bouncheck/dockerfile-update-maven
Manually install Maven 3.9.10 in Dockerfile
2 parents 91b73dd + 75dbb91 commit 4c34edd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@ RUN apt-get -y update \
1919
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/xenial-security.gpg] http://security.ubuntu.com/ubuntu \
2020
xenial-security main" | tee /etc/apt/sources.list.d/xenial-security.list > /dev/null \
2121
&& apt-get -y update \
22-
&& apt-get install -y temurin-8-jdk maven git docker-ce-cli python2 libssl1.0.0 libapr1 \
22+
&& apt-get install -y temurin-8-jdk git docker-ce-cli python2 libssl1.0.0 libapr1 \
2323
&& apt-get install -y temurin-11-jdk \
24-
&& rm -rf /var/lib/apt/lists/*
24+
&& rm -rf /var/lib/apt/lists/* \
25+
&& wget https://dlcdn.apache.org/maven/maven-3/3.9.10/binaries/apache-maven-3.9.10-bin.tar.gz \
26+
&& tar -xvzf apache-maven-3.9.10-bin.tar.gz -C /opt \
27+
&& ln -s /opt/apache-maven-3.9.10 /opt/maven
28+
29+
ENV MAVEN_HOME=/opt/maven
30+
ENV PATH="$MAVEN_HOME/bin:${PATH}"
2531

2632
RUN echo 2 | update-alternatives --config java
2733

0 commit comments

Comments
 (0)