We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c314fd4 commit e8da9ccCopy full SHA for e8da9cc
1 file changed
docker/native-image/dockerfile
@@ -4,7 +4,10 @@ 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 add-apt-repository ppa:ubuntu-toolchain-r/test
8
RUN apt-get update
9
RUN apt-get install -y git build-essential zlib1g-dev
10
+RUN apt-get install gcc-10.0 g++-10.0
11
+RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10.0 60 --slave /usr/bin/g++ g++ /usr/bin/g++-10.0
12
# Avoid errors like: "fatal: detected dubious ownership in repository"
13
RUN git config --global --add safe.directory '*'
0 commit comments