Skip to content

Commit

Permalink
halve docker image size
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Werner-Meier <[email protected]>
  • Loading branch information
unautre authored and farodin91 committed Jun 24, 2024
1 parent 4fd338b commit 55880ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions janusgraph-dist/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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

Expand Down

0 comments on commit 55880ea

Please sign in to comment.