From 55880ea51e2355cfa96baf1dcafb9c2ddf9e2713 Mon Sep 17 00:00:00 2001 From: Dylan Werner-Meier Date: Sat, 22 Jun 2024 23:30:21 +0200 Subject: [PATCH] halve docker image size Signed-off-by: Dylan Werner-Meier --- janusgraph-dist/docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/janusgraph-dist/docker/Dockerfile b/janusgraph-dist/docker/Dockerfile index a03e268a79..aaf7485e60 100644 --- a/janusgraph-dist/docker/Dockerfile +++ b/janusgraph-dist/docker/Dockerfile @@ -64,7 +64,7 @@ RUN groupadd -r janusgraph --gid=999 && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends krb5-user && \ rm -rf /var/lib/apt/lists/* -COPY --from=builder /opt/janusgraph/ /opt/janusgraph/ +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/ @@ -73,7 +73,7 @@ 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} && \ - chown -R janusgraph:janusgraph ${JANUS_HOME} ${JANUS_INITDB_DIR} ${JANUS_CONFIG_DIR} ${JANUS_DATA_DIR} + chown -R janusgraph:janusgraph ${JANUS_INITDB_DIR} ${JANUS_CONFIG_DIR} ${JANUS_DATA_DIR} EXPOSE 8182