From 1eb7fa88788d2d11facec8483077e7ccaebeeaf0 Mon Sep 17 00:00:00 2001 From: Janne Koschinski <janne@kuschku.de> Date: Tue, 9 Feb 2021 01:09:00 +0100 Subject: [PATCH] Correct dockerfile --- Dockerfile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2a37b9e..2cb453c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,18 @@ ARG SDK_VERSION FROM k8r.eu/justjanne/android-sdk:$SDK_VERSION RUN apt-get --quiet update --yes && \ - apt-get --quiet install --yes python3 python3-lxml uidmap + apt-get --quiet install --yes python3 python3-lxml uidmap iptables -RUN useradd -r -u 1001 -g builduser builduser -USER builduser +ARG UID=1000 +ARG GID=1000 +RUN mkdir /build/ && chown 1000:1000 /build +RUN groupadd --gid ${GID} build +RUN useradd --uid ${UID} --gid ${GID} --home /build build +USER build + +ARG SKIP_IPTABLES=1 RUN curl -fsSL https://get.docker.com/rootless | sh + +ARG XDG_RUNTIME_DIR=/build/.docker/run +ARG PATH=/build/bin:$PATH +ARG DOCKER_HOST=unix:///build/.docker/run/docker.sock -- GitLab