Skip to content

Commit

Permalink
use entrypoint for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Oct 7, 2024
1 parent 71b3821 commit 90f6d54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion search/enterprise/reindexing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ ARG ALFRESCO_REINDEX_GROUP_NAME
ARG ALFRESCO_REINDEX_USER_NAME

COPY *-app.jar /opt/app.jar
COPY entrypoint.sh /entrypoint.sh

RUN groupadd -g ${ALFRESCO_REINDEX_GROUP_ID} ${ALFRESCO_REINDEX_GROUP_NAME} && \
useradd -lu ${ALFRESCO_REINDEX_USER_ID} -g ${ALFRESCO_REINDEX_GROUP_NAME} ${ALFRESCO_REINDEX_USER_NAME}

USER ${ALFRESCO_REINDEX_USER_NAME}

ENTRYPOINT java $JAVA_OPTS -jar /opt/app.jar
ENTRYPOINT ["/entrypoint.sh"]
3 changes: 3 additions & 0 deletions search/enterprise/reindexing/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exec java $JAVA_OPTS -jar /opt/app.jar $@

0 comments on commit 90f6d54

Please sign in to comment.