seednode-docker: Use distroless base-image

This commit is contained in:
Alva Swanson 2023-10-03 21:39:11 +02:00
parent 58b4376e6f
commit 2caf328949
No known key found for this signature in database
GPG Key ID: 004760E77F753090

View File

@ -1,6 +1,9 @@
FROM azul/zulu-openjdk:11.0.20-11.66.15 FROM azul/zulu-openjdk:11.0.20-11.66.15 as build
COPY '{{ ARCHIVE_PATH }}' / COPY '{{ ARCHIVE_PATH }}' /
RUN tar xvf /seednode.tar RUN tar xvf /seednode.tar
FROM gcr.io/distroless/java11-debian11
COPY --from=build /seednode /seednode
ENTRYPOINT ["java", "-classpath", "'{{ CLASS_PATH }}'", "'{{ MAIN_CLASS }}'"] ENTRYPOINT ["java", "-classpath", "'{{ CLASS_PATH }}'", "'{{ MAIN_CLASS }}'"]