Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MOSIP-31575] Updated docker file. #75

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[MOSIP-31575] Updated docker file.
Signed-off-by: abhishek8shankar <[email protected]>
abhishek8shankar authored Mar 27, 2024
commit 95c427dfa78c928042b26e614df98a88a64c6fe1
14 changes: 13 additions & 1 deletion keycloak-artemis/Dockerfile
Original file line number Diff line number Diff line change
@@ -30,7 +30,19 @@ RUN chmod +x /usr/sbin/install_packages && chmod g+rwX /opt/bitnami && \
# Install required system packages and dependencies
RUN . /usr/sbin/install_packages acl ca-certificates curl gzip libaio1 libc6 procps rsync tar zlib1g

USER 1001
ARG container_user=mosip
ARG container_user_group=mosip
ARG container_user_uid=1001
ARG container_user_gid=1001

# Create and set ownership for the container user
RUN groupadd -g ${container_user_gid} ${container_user_group} && \
useradd -r -u ${container_user_uid} -g ${container_user_group} ${container_user} && \
mkdir -p /home/${container_user} && \
chown -R ${container_user}:${container_user} /home/${container_user}

USER ${container_user_uid}:${container_user_gid}
WORKDIR /home/${container_user}

ENTRYPOINT [ "/opt/bitnami/scripts/keycloak/entrypoint.sh" ]