Last active
October 2, 2023 10:49
-
-
Save roman4ello/4ba42a2a8bb160f2ca9ca74cacb2beea to your computer and use it in GitHub Desktop.
Revisions
-
roman4ello revised this gist
Oct 2, 2023 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ FROM amazoncorretto:8u382-alpine-jre ARG USER_ID=YOUR_USER_ID ARG GROUP_ID=YOUR_GROUP_ID ARG USER_NAME=YOUR_USER -
roman4ello created this gist
Oct 2, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ ARG USER_ID=YOUR_USER_ID ARG GROUP_ID=YOUR_GROUP_ID ARG USER_NAME=YOUR_USER ARG GROUP_NAME=YOUR_GROUP RUN set -x && addgroup -g $GROUP_ID $GROUP_NAME && \ adduser --shell /sbin/nologin \ --disabled-password \ --gecos '' \ --no-create-home \ --uid $USER_ID \ --ingroup $GROUP_NAME \ $USER_NAME && set +x USER $USER_NAME