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

Correct dockerfile

parent cfd5f5c4
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment