use new image with graalvm for api gateway
This commit is contained in:
+8
-1
@@ -1,7 +1,14 @@
|
||||
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 \
|
||||
&& 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 - \
|
||||
|
||||
Reference in New Issue
Block a user