Skip to content

Commit

Permalink
Specify Maven version
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Delporte committed Nov 16, 2024
1 parent 558ee23 commit ff41182
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pi4j-builder-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUN apt-get install --yes openjdk-21-jdk-headless
ENV JAVA_HOME="/usr/lib/jvm/java-21-openjdk-$TARGETARCH/"

# install Apache Maven
RUN apt list -a maven
RUN apt-get install --yes maven=3.9.0

# configure Maven with custom settings for defined M2 repository path
Expand All @@ -43,6 +44,10 @@ RUN mkdir -p /m2/repository && chmod -R a+rw /m2 && chmod -R g+s /m2
# clean APT cache
RUN apt-get clean

# validate installed versions
RUN java -version
RUN mvn -v

# configure build time environment variables
ENV BUILD_FOLDER=/build
ENV PI4J_BUILDER="$BUILDVERSION"
Expand Down

0 comments on commit ff41182

Please sign in to comment.