aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-04 21:44:06 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-05 00:14:46 +0200
commit82cd742ad246c920b43e178ca8ca738132253fe1 (patch)
treec2a9e2032eace2481612d814b441ddbfdde1cfd3 /docker
parentbuild: switch to Amazon Corretto (diff)
downloadrefinery-82cd742ad246c920b43e178ca8ca738132253fe1.tar.gz
refinery-82cd742ad246c920b43e178ca8ca738132253fe1.tar.zst
refinery-82cd742ad246c920b43e178ca8ca738132253fe1.zip
build: remove unused Java modules from container
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile2
-rwxr-xr-xdocker/build.sh3
2 files changed, 2 insertions, 3 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 89fa454e..a94e3fe8 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -33,7 +33,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
33FROM --platform=$BUILDPLATFORM jlink-$TARGETARCH-on-$BUILDARCH as jlink 33FROM --platform=$BUILDPLATFORM jlink-$TARGETARCH-on-$BUILDARCH as jlink
34RUN jlink --no-header-files --no-man-pages --compress=2 \ 34RUN jlink --no-header-files --no-man-pages --compress=2 \
35 --module-path=/crossjdk/jmods --strip-debug --add-modules \ 35 --module-path=/crossjdk/jmods --strip-debug --add-modules \
36 java.base,java.compiler,java.desktop,java.instrument,java.management,java.naming,java.rmi,java.security.jgss,java.sql,jdk.unsupported,jdk.zipfs \ 36 java.base,java.logging,java.xml,jdk.zipfs \
37 --output /jlink 37 --output /jlink
38 38
39FROM public.ecr.aws/amazonlinux/amazonlinux:2023-minimal AS base 39FROM public.ecr.aws/amazonlinux/amazonlinux:2023-minimal AS base
diff --git a/docker/build.sh b/docker/build.sh
index a8c2aeaa..5c25bb5f 100755
--- a/docker/build.sh
+++ b/docker/build.sh
@@ -34,5 +34,4 @@ docker buildx build . \
34 --output "type=image,name=ghcr.io/graphs4value/refinery:${refinery_version},push=true,annotation-index.org.opencontainers.image.source=https://github.com/graphs4value/refinery,annotation-index.org.opencontainers.image.description=Refinery: an efficient graph solver for generating well-formed models,annotation-index.org.opencontainers.image.licenses=EPL-2.0" \ 34 --output "type=image,name=ghcr.io/graphs4value/refinery:${refinery_version},push=true,annotation-index.org.opencontainers.image.source=https://github.com/graphs4value/refinery,annotation-index.org.opencontainers.image.description=Refinery: an efficient graph solver for generating well-formed models,annotation-index.org.opencontainers.image.licenses=EPL-2.0" \
35 --label 'org.opencontainers.image.source=https://github.com/graphs4value/refinery' \ 35 --label 'org.opencontainers.image.source=https://github.com/graphs4value/refinery' \
36 --label 'org.opencontainers.image.description=Refinery: an efficient graph solver for generating well-formed models' \ 36 --label 'org.opencontainers.image.description=Refinery: an efficient graph solver for generating well-formed models' \
37 --label 'org.opencontainers.image.licenses=EPL-2.0' \ 37 --label 'org.opencontainers.image.licenses=EPL-2.0'
38 --push