summaryrefslogtreecommitdiff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2018-10-21 11:44:32 +0100
committerdakkar <dakkar@thenautilus.net>2018-10-21 11:52:17 +0100
commit15d4339eec3d31561d714547d2a2fc9803b3f884 (patch)
tree675b13014633d7f3510bb6f0c54f2eebc3663aea /docker/Dockerfile
parentfix patches paths in setup (diff)
downloaddakkar-android-huawei-m5-15d4339eec3d31561d714547d2a2fc9803b3f884.tar.gz
dakkar-android-huawei-m5-15d4339eec3d31561d714547d2a2fc9803b3f884.tar.bz2
dakkar-android-huawei-m5-15d4339eec3d31561d714547d2a2fc9803b3f884.zip
run as myself inside the container
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 09c46bc..ac6a274 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -38,7 +38,11 @@ RUN dpkg-reconfigure locales
RUN curl https://storage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo
RUN chmod a+x /usr/local/bin/repo
+USER root
+RUN groupadd --gid 1000 dakkar
+RUN useradd --gid 1000 --create-home --no-user-group --uid 1000 --shell /bin/bash dakkar
+
+USER dakkar:dakkar
RUN git config --global user.name "dakkar"
RUN git config --global user.email "dakkar@thenautilus.net"
-USER root