From 2a75669e570e82903c4d97fa1dcc8d26cc0eca16 Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Tue, 9 Feb 2021 01:32:04 +0100
Subject: [PATCH] Run container as root again

---
 Dockerfile | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 2cb453c..6acf6d7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,16 +4,9 @@ FROM k8r.eu/justjanne/android-sdk:$SDK_VERSION
 RUN apt-get --quiet update --yes && \
     apt-get --quiet install --yes python3 python3-lxml uidmap iptables
 
-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
+WORKDIR /usr/local/bin
+RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-20.10.3.tgz && tar -zxvf docker-*.tgz
+RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-rootless-extras-20.10.3.tgz && tar -zxvf docker-rootless-extras*.tgz
 
-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
+ARG XDG_RUNTIME_DIR=/root/.docker/run
+ARG DOCKER_HOST=unix:///root/.docker/run/docker.sock
-- 
GitLab