Skip to content

Commit 56b04b3

Browse files
Try graalvm docker image for musl
1 parent f65e8e2 commit 56b04b3

2 files changed

Lines changed: 1 addition & 46 deletions

File tree

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1 @@
1-
# Use an old version of Ubuntu to build the test server to maintain compatibility with
2-
# older versions of glibc, specifically glib 2.17.
3-
FROM ubuntu:18.04
4-
ENV JAVA_HOME=/usr/lib64/graalvm/graalvm-community-java21
5-
COPY --from=ghcr.io/graalvm/native-image-community:21 $JAVA_HOME $JAVA_HOME
6-
ENV PATH="${JAVA_HOME}/bin:${PATH}"
7-
RUN apt-get update
8-
RUN apt-get install -y git build-essential curl
9-
COPY install-musl.sh /opt/install-musl.sh
10-
RUN chmod +x /opt/install-musl.sh
11-
WORKDIR /opt
12-
# We need to build musl and zlibc with musl to for a static build
13-
# See https://www.graalvm.org/21.3/reference-manual/native-image/StaticImages/index.html
14-
RUN ./install-musl.sh
15-
ENV MUSL_HOME=/opt/musl-toolchain
16-
ENV PATH="$MUSL_HOME/bin:$PATH"
17-
# Avoid errors like: "fatal: detected dubious ownership in repository"
18-
RUN git config --global --add safe.directory '*'
1+
FROM ghcr.io/graalvm/native-image-community:21-muslib

docker/native-image-musl/install-musl.sh

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)