diff options
author | 2023-09-04 21:44:06 +0200 | |
---|---|---|
committer | 2023-09-05 00:14:46 +0200 | |
commit | 82cd742ad246c920b43e178ca8ca738132253fe1 (patch) | |
tree | c2a9e2032eace2481612d814b441ddbfdde1cfd3 /docker | |
parent | build: switch to Amazon Corretto (diff) | |
download | refinery-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/Dockerfile | 2 | ||||
-rwxr-xr-x | docker/build.sh | 3 |
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 \ | |||
33 | FROM --platform=$BUILDPLATFORM jlink-$TARGETARCH-on-$BUILDARCH as jlink | 33 | FROM --platform=$BUILDPLATFORM jlink-$TARGETARCH-on-$BUILDARCH as jlink |
34 | RUN jlink --no-header-files --no-man-pages --compress=2 \ | 34 | RUN 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 | ||
39 | FROM public.ecr.aws/amazonlinux/amazonlinux:2023-minimal AS base | 39 | FROM 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 | ||