mirror of
https://github.com/kylemanna/docker-aosp
synced 2025-06-07 16:06:17 +00:00
Dockerfile: Add "aosp" group
See https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#user Suggested-by: Mathieu Maret <mmaret@genymobile.com>
This commit is contained in:
parent
66505f7142
commit
4d16a0fa30
@ -24,7 +24,7 @@ ADD https://commondatastorage.googleapis.com/git-repo-downloads/repo /usr/local/
|
|||||||
RUN chmod 755 /usr/local/bin/*
|
RUN chmod 755 /usr/local/bin/*
|
||||||
|
|
||||||
# All builds will be done by user aosp
|
# All builds will be done by user aosp
|
||||||
RUN useradd --create-home aosp
|
RUN groupadd -r aosp && useradd --create-home -g aosp aosp
|
||||||
ADD gitconfig /home/aosp/.gitconfig
|
ADD gitconfig /home/aosp/.gitconfig
|
||||||
ADD ssh_config /home/aosp/.ssh/config
|
ADD ssh_config /home/aosp/.ssh/config
|
||||||
RUN chown aosp:aosp /home/aosp/.gitconfig
|
RUN chown aosp:aosp /home/aosp/.gitconfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user