Skip to content

Commit f142686

Browse files
committed
otimize graalvm fix bugs 18 - switch image to ubuntu arm, revert to work with ARG BUILDPLATFORM, remove cache
add same runner: ubuntu-latest switch to mvnw improve profile default add -Pnative no enable build native march again, and runner arm enable cache and SPRING_ACTIVE_PROFILE=cicd try to fix docker add wget add make to install musl enable static with fix make install and try to fix docker manifest try new way to install musl an link it
1 parent ec66dff commit f142686

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Dockerfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,22 @@ RUN microdnf install --nodocs -y \
1919
wget xz make gcc \
2020
&& microdnf clean all
2121

22-
# Install musl
22+
# -----------------------------
23+
# 1) Install & build musl from source
24+
# -----------------------------
2325
RUN wget -q https://musl.libc.org/releases/musl-1.2.5.tar.gz \
24-
-O /tmp/musl-1.2.5.tar.gz && \
26+
-O /tmp/musl-1.2.5.tar.gz && \
2527
tar -xzf /tmp/musl-1.2.5.tar.gz -C /tmp && \
2628
cd /tmp/musl-1.2.5 && \
27-
./configure --prefix=/usr/local/musl && \
29+
./configure --prefix=/usr/local/musl --exec-prefix=/usr/local && \
2830
make && make install
2931

32+
# -----------------------------
33+
# 2) Symlink the single musl-gcc into the two names GraalVM expects
34+
# -----------------------------
35+
RUN ln -sf /usr/local/bin/musl-gcc /usr/local/bin/x86_64-linux-musl-gcc && \
36+
ln -sf /usr/local/bin/musl-gcc /usr/local/bin/aarch64-linux-musl-gcc
37+
3038
# copy only what's needed for mvnw bootstrap
3139
COPY mvnw ./
3240
COPY .mvn/ .mvn/

0 commit comments

Comments
 (0)