Skip to content

Commit

Permalink
[MOSIP-31575] Updated docker file.
Browse files Browse the repository at this point in the history
Signed-off-by: abhishek8shankar <[email protected]>
  • Loading branch information
abhishek8shankar authored Apr 12, 2024
1 parent 2c49b87 commit 4f8daa1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions mosip-packet-creator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
FROM openjdk:11-jre

# can be passed during Docker build as build time environment variable for mosip user level change.
ARG container_user=mosip
ARG container_user_group=mosip
ARG container_user_uid=1001
ARG container_user_gid=1001

# can be passed during Docker build as build time environment for label related addition to docker.
ARG SOURCE
ARG COMMIT_HASH
ARG COMMIT_ID
ARG BUILD_TIME

# can be passed during Docker build as build time environment for label.
LABEL source=${SOURCE}
LABEL commit_hash=${COMMIT_HASH}
LABEL commit_id=${COMMIT_ID}
LABEL build_time=${BUILD_TIME}

# can be passed during Docker build as build time environment for github branch to pickup configuration from.
ARG container_user=mosip
ARG container_user_group=mosip
ARG container_user_uid=1001
ARG container_user_gid=1001
# set working directory for the user
ENV work_dir=/home/${container_user}/

Expand Down

0 comments on commit 4f8daa1

Please sign in to comment.