File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,15 +2,9 @@ FROM mcr.microsoft.com/dotnet/runtime:8.0
22ARG MENDIX_VERSION
33
44RUN \
5- echo "Installing Java 21 ..." && \
5+ echo "Installing required packages ..." && \
66 apt-get -qq update && \
7- apt-get -qq install -y wget libgdiplus && \
8- wget -q https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz -O /tmp/openjdk.tar.gz || { echo "Failed to download Java 21" ; exit 1; } && \
9- mkdir -p /usr/lib/jvm && \
10- tar xfz /tmp/openjdk.tar.gz --directory /usr/lib/jvm || { echo "Failed to extract Java 21" ; exit 1; } && \
11- ls /usr/lib/jvm && \
12- mv /usr/lib/jvm/jdk-21* /usr/lib/jvm/java-21-openjdk && \
13- rm /tmp/openjdk.tar.gz
7+ apt-get -qq install -y wget libgdiplus openjdk-21-jdk
148
159RUN \
1610 echo "Downloading mxbuild ${MENDIX_VERSION}..." && \
3327 echo "dotnet /tmp/mxbuild/modeler/mx.dll \$ @" >>/bin/mx && \
3428 chmod +x /bin/mx
3529
36- ENV M2EE_TOOLS_JAR=/tmp/mxbuild/modeler/tools/m2ee-tools.jar
30+ ENV M2EE_TOOLS_JAR=/tmp/mxbuild/modeler/tools/m2ee-tools.jar
31+ ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
Original file line number Diff line number Diff line change 1- /* eslint-disable @typescript-eslint/explicit-function-return-type */
21/* eslint-disable @typescript-eslint/no-var-requires */
2+ /* eslint-disable @typescript-eslint/explicit-function-return-type */
33/* eslint-disable prettier/prettier */
44const fs = require ( 'fs' ) ;
55const path = require ( 'path' ) ;
You can’t perform that action at this time.
0 commit comments