File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments