Skip to content

Instantly share code, notes, and snippets.

@ktchernov
Created May 30, 2022 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ktchernov/721756ae610ab0ba65a0215534a0492f to your computer and use it in GitHub Desktop.
Save ktchernov/721756ae610ab0ba65a0215534a0492f to your computer and use it in GitHub Desktop.
Dockerfile users
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