Created
May 30, 2022 02:30
-
-
Save ktchernov/721756ae610ab0ba65a0215534a0492f to your computer and use it in GitHub Desktop.
Dockerfile users
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
FROM debian:11 | |
# Add a user my-user (1001) to group my-group (gid 1001) | |
RUN addgroup --system --gid 1001 my-group && \ | |
adduser --system --gid 1001 --uid 1001 --disabled-password my-user | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment