Skip to content

Commit 70076e6

Browse files
committed
chore: upgrade docker
1 parent c184354 commit 70076e6

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
FROM mono:6.12
1+
FROM debian:bookworm-slim
22
ARG MENDIX_VERSION
33

4-
# Install dependencies
5-
RUN apt-get -qq update && \
6-
apt-get -qq install -y wget
4+
# Install dependencies for mxbuild
5+
RUN apt-get update && \
6+
apt-get install -y --no-install-recommends wget && \
7+
rm -rf /var/lib/apt/lists/*
78

89
# Install Java
910
RUN echo "Installing Java..." && \
@@ -20,15 +21,19 @@ RUN echo "Downloading mxbuild ${MENDIX_VERSION}..." && \
2021
rm /tmp/mxbuild.tar.gz
2122

2223
# Clean up dependencies
23-
RUN apt-get -qq remove -y wget && \
24-
apt-get clean
24+
RUN apt-get update && \
25+
apt-get purge -y --auto-remove wget && \
26+
apt-get clean && \
27+
rm -rf /var/lib/apt/lists/*
2528

26-
# Create mxbuild executable script
29+
# Create mxbuild executable script with Java parameters
2730
RUN echo "#!/bin/bash -x" >/bin/mxbuild && \
28-
echo "mono /tmp/mxbuild/modeler/mxbuild.exe --java-home=/usr/lib/jvm/jdk-11.0.2 --java-exe-path=/usr/lib/jvm/jdk-11.0.2/bin/java \$@" >>/bin/mxbuild && \
31+
echo "/tmp/mxbuild/modeler/mxbuild --java-home=/usr/lib/jvm/jdk-11.0.2 --java-exe-path=/usr/lib/jvm/jdk-11.0.2/bin/java \$@" >>/bin/mxbuild && \
2932
chmod +x /bin/mxbuild
3033

31-
# Create mx executable script
32-
RUN echo "#!/bin/bash -x" >/bin/mx && \
33-
echo "mono /tmp/mxbuild/modeler/mx.exe \$@" >>/bin/mx && \
34-
chmod +x /bin/mx
34+
# Create symbolic link for mx (direct executable)
35+
RUN ln -s /tmp/mxbuild/modeler/mx /bin/mx
36+
37+
# Set Java environment
38+
ENV JAVA_HOME=/usr/lib/jvm/jdk-11.0.2
39+
ENV PATH="$JAVA_HOME/bin:$PATH"

0 commit comments

Comments
 (0)