Files

18 lines
824 B
Docker

FROM maven:3.9-eclipse-temurin-21
# GraalVM come JDK secondaria per native-image (letta via GRAALVM_HOME)
ENV GRAALVM_HOME=/opt/graalvm
RUN mkdir -p "$GRAALVM_HOME" \
&& curl -fsSL "https://download.oracle.com/graalvm/21/latest/graalvm-jdk-21_linux-x64_bin.tar.gz" \
| tar -xz --strip-components=1 -C "$GRAALVM_HOME" \
&& "$GRAALVM_HOME/bin/native-image" --version
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl ca-certificates git jq build-essential zlib1g-dev \
&& curl -sL "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64" \
-o /usr/local/bin/yq && chmod +x /usr/local/bin/yq \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*