From 8d97f82c6786271eb9d9ff16a34dd02d92aea200 Mon Sep 17 00:00:00 2001 From: Heyko Oelrichs Date: Mon, 3 Nov 2025 18:32:07 +0100 Subject: [PATCH] Update Dockerfile and streamline build steps Update Dockerfile to use debian:bookworm-slim and streamline label formatting Signed-off-by: Heyko Oelrichs Fix Dockerfile syntax by standardizing the 'AS' keyword in the builder stage Signed-off-by: Heyko Oelrichs Revert Dockerfile base image from debian:bookworm-slim to debian:bullseye-slim Signed-off-by: Heyko Oelrichs Remove netty-transport-native-epoll dependency Removed netty-transport-native-epoll dependency. Signed-off-by: Heyko Oelrichs fix: replace openjdk docker build with eclipse-temurin CTR Fixes #4880 Discussion: https://github.com/JanusGraph/janusgraph/discussions/4880 Co-authored-by: Oleksandr Porunov Signed-off-by: Oleksandr Porunov --- janusgraph-dist/docker/Dockerfile | 33 ++++++++++++++----------------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/janusgraph-dist/docker/Dockerfile b/janusgraph-dist/docker/Dockerfile index b1daf460b3..d1d42ed4b1 100644 --- a/janusgraph-dist/docker/Dockerfile +++ b/janusgraph-dist/docker/Dockerfile @@ -65,14 +65,11 @@ RUN groupadd -r janusgraph --gid=999 && \ rm -rf /var/lib/apt/lists/* COPY --from=builder --chown=999:999 /opt/janusgraph/ /opt/janusgraph/ -COPY --from=builder /opt/yq /usr/bin/yq -COPY docker/docker-entrypoint.sh /usr/local/bin/ -COPY docker/load-initdb.sh /usr/local/bin/ - -RUN chmod 755 /usr/local/bin/docker-entrypoint.sh && \ - chmod 755 /usr/local/bin/load-initdb.sh && \ - chmod 755 /usr/bin/yq && \ - mkdir -p ${JANUS_INITDB_DIR} ${JANUS_CONFIG_DIR} ${JANUS_DATA_DIR} && \ +COPY --from=builder --chmod=755 /opt/yq /usr/bin/yq +COPY --chmod=755 docker/docker-entrypoint.sh /usr/local/bin/ +COPY --chmod=755 docker/load-initdb.sh /usr/local/bin/ + +RUN mkdir -p ${JANUS_INITDB_DIR} ${JANUS_CONFIG_DIR} ${JANUS_DATA_DIR} && \ chown -R janusgraph:janusgraph ${JANUS_INITDB_DIR} ${JANUS_CONFIG_DIR} ${JANUS_DATA_DIR} EXPOSE 8182 @@ -86,13 +83,13 @@ CMD [ "janusgraph" ] ARG CREATED=test ARG REVISION=test -LABEL org.opencontainers.image.title="JanusGraph Docker Image" -LABEL org.opencontainers.image.description="Official JanusGraph Docker image" -LABEL org.opencontainers.image.url="https://janusgraph.org/" -LABEL org.opencontainers.image.documentation="https://docs.janusgraph.org/v1.1/" -LABEL org.opencontainers.image.revision="${REVISION}" -LABEL org.opencontainers.image.source="https://github.com/JanusGraph/janusgraph-docker/" -LABEL org.opencontainers.image.vendor="JanusGraph" -LABEL org.opencontainers.image.version="${JANUS_VERSION}" -LABEL org.opencontainers.image.created="${CREATED}" -LABEL org.opencontainers.image.license="Apache-2.0" +LABEL org.opencontainers.image.title="JanusGraph Docker Image" \ + org.opencontainers.image.description="Official JanusGraph Docker image" \ + org.opencontainers.image.url="https://janusgraph.org/" \ + org.opencontainers.image.documentation="https://docs.janusgraph.org/v1.1/" \ + org.opencontainers.image.revision="${REVISION}" \ + org.opencontainers.image.source="https://github.com/JanusGraph/janusgraph-docker/" \ + org.opencontainers.image.vendor="JanusGraph" \ + org.opencontainers.image.version="${JANUS_VERSION}" \ + org.opencontainers.image.created="${CREATED}" \ + org.opencontainers.image.license="Apache-2.0"