We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a3aaae commit b5325e4Copy full SHA for b5325e4
Dockerfile
@@ -0,0 +1,22 @@
1
+# Description: A minimal Dockerfile for running/building spotless-cli and tests in a GraalVM environment.
2
+# --- Stage 1: Build/Install GraalVM ---
3
+FROM ghcr.io/graalvm/graalvm-community:21.0.2 AS graalvm-builder
4
+
5
+# --- Stage 2: Minimal Runtime Image ---
6
+FROM ubuntu:22.04
7
8
+# System packages you need at runtime
9
+RUN apt-get update && \
10
+ apt-get install -y \
11
+ libssl-dev \
12
+ libc6 \
13
+ npm \
14
+ && rm -rf /var/lib/apt/lists/*
15
16
+# Copy GraalVM from the first stage
17
+COPY --from=graalvm-builder /opt/graalvm-community-java21 /opt/graalvm
18
19
+# Set up environment
20
+ENV GRAALVM_HOME=/opt/graalvm
21
+ENV PATH="${GRAALVM_HOME}/bin:${PATH}"
22
0 commit comments