Skip to content

Commit e0701ab

Browse files
committed
Set conditional GRADLE_OPTS with launch mechanism (closes #196)
1 parent 7855cdb commit e0701ab

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

jdk17/Dockerfile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
FROM eclipse-temurin:17-jdk
1+
FROM eclipse-temurin:17-jdk AS base
2+
3+
ARG TARGETARCH
4+
5+
FROM base AS base-amd64
6+
7+
FROM base AS base-arm32v7
8+
9+
FROM base AS base-arm64v8
10+
ENV GRADLE_OPTS="-Djdk.lang.Process.launchMechanism=vfork"
11+
12+
FROM base AS base-ppc64le
13+
14+
FROM base AS base-s390x
15+
16+
FROM base-$TARGETARCH
217

318
CMD ["gradle"]
419

0 commit comments

Comments
 (0)