-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from syedsalman3753/master
[DSD-5160] Added openjdk17-jre Dockerfile
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM ubuntu:20.04 | ||
|
||
ARG SOURCE | ||
ARG COMMIT_HASH | ||
ARG COMMIT_ID | ||
ARG BUILD_TIME | ||
LABEL source=${SOURCE} | ||
LABEL commit_hash=${COMMIT_HASH} | ||
LABEL commit_id=${COMMIT_ID} | ||
LABEL build_time=${BUILD_TIME} | ||
|
||
ARG container_user=mosip | ||
ARG container_user_group=mosip | ||
ARG container_user_uid=1001 | ||
ARG container_user_gid=1001 | ||
|
||
ENV container_user=${container_user} | ||
ENV container_user_group=${container_user_group} | ||
ENV container_user_uid=${container_user_uid} | ||
ENV container_user_gid=${container_user_gid} | ||
|
||
# Install mc and its dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends openjdk-17-jre wget && \ | ||
java --version && \ | ||
groupadd -g ${container_user_gid} ${container_user_group} && \ | ||
useradd -u ${container_user_uid} -g ${container_user_group} -s /bin/bash -m ${container_user} && \ | ||
mkdir -p /home/${container_user} \ | ||
|