From 5ce657a4fde3bf69237d38d80e3c2e8c7601fbf2 Mon Sep 17 00:00:00 2001 From: Kamil Krzywicki Date: Wed, 7 Feb 2024 14:18:37 +0100 Subject: [PATCH] try to fix arm images --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f75348e..15a398e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ COPY --from=SECURITY /etc/java-17-openjdk/security/java.security /java.security RUN echo "networkaddress.cache.ttl=60" >> /java.security RUN sed -i -e "s@^securerandom.source=.*@securerandom.source=${JAVA_RANDOM}@" /java.security -FROM gcr.io/distroless/java17:nonroot +FROM --platform=$BUILDPLATFORM gcr.io/distroless/java17:nonroot COPY --from=BUILD /opt/target/vault-crd.jar /opt/vault-crd.jar COPY --from=BUILD /java.security /etc/java-17-openjdk/security/java.security