Skip to content

Instantly share code, notes, and snippets.

View phdcoder's full-sized avatar

Alessandro Rodrigues e Silva phdcoder

View GitHub Profile
@phdcoder
phdcoder / Dockerfile
Created October 16, 2019 17:14 — forked from renzok/Dockerfile
docker: mapping host uid and gid to user inisde container
FROM debian:jessie
ENV USER=boatswain USER_ID=1000 USER_GID=1000
# now creating user
RUN groupadd --gid "${USER_GID}" "${USER}" && \
useradd \
--uid ${USER_ID} \
--gid ${USER_GID} \
--create-home \