Skip to content
Snippets Groups Projects
Verified Commit 2a75669e authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Run container as root again

parent 1eb7fa88
Branches
No related tags found
No related merge requests found
...@@ -4,16 +4,9 @@ FROM k8r.eu/justjanne/android-sdk:$SDK_VERSION ...@@ -4,16 +4,9 @@ FROM k8r.eu/justjanne/android-sdk:$SDK_VERSION
RUN apt-get --quiet update --yes && \ RUN apt-get --quiet update --yes && \
apt-get --quiet install --yes python3 python3-lxml uidmap iptables apt-get --quiet install --yes python3 python3-lxml uidmap iptables
ARG UID=1000 WORKDIR /usr/local/bin
ARG GID=1000 RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-20.10.3.tgz && tar -zxvf docker-*.tgz
RUN mkdir /build/ && chown 1000:1000 /build RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-rootless-extras-20.10.3.tgz && tar -zxvf docker-rootless-extras*.tgz
RUN groupadd --gid ${GID} build
RUN useradd --uid ${UID} --gid ${GID} --home /build build
USER build
ARG SKIP_IPTABLES=1 ARG XDG_RUNTIME_DIR=/root/.docker/run
RUN curl -fsSL https://get.docker.com/rootless | sh ARG DOCKER_HOST=unix:///root/.docker/run/docker.sock
ARG XDG_RUNTIME_DIR=/build/.docker/run
ARG PATH=/build/bin:$PATH
ARG DOCKER_HOST=unix:///build/.docker/run/docker.sock
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment