Skip to content

Commit b5325e4

Browse files
committed
chore: add dockerimage that was very helpful in debugging
for validating OS differences in jdk-logger
1 parent 3a3aaae commit b5325e4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)