feat: use new ids
This commit is contained in:
parent
595e2c4a54
commit
2e4e2bb6d9
|
|
@ -8,6 +8,8 @@ ARG CHANNEL=stable
|
||||||
ARG DOCKER_VERSION=20.10.21
|
ARG DOCKER_VERSION=20.10.21
|
||||||
ARG DOCKER_COMPOSE_VERSION=v2.12.2
|
ARG DOCKER_COMPOSE_VERSION=v2.12.2
|
||||||
ARG DUMB_INIT_VERSION=1.2.5
|
ARG DUMB_INIT_VERSION=1.2.5
|
||||||
|
ARG RUNNER_USER_UID=1001
|
||||||
|
ARG DOCKER_GROUP_GID=121
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update -y \
|
RUN apt-get update -y \
|
||||||
|
|
@ -25,8 +27,8 @@ RUN apt-get update -y \
|
||||||
zip \
|
zip \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN adduser --disabled-password --gecos "" --uid 1000 runner \
|
RUN adduser --disabled-password --gecos "" --uid $RUNNER_USER_UID runner \
|
||||||
&& groupadd docker \
|
&& groupadd docker --gid $DOCKER_GROUP_GID \
|
||||||
&& usermod -aG sudo runner \
|
&& usermod -aG sudo runner \
|
||||||
&& usermod -aG docker runner \
|
&& usermod -aG docker runner \
|
||||||
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers \
|
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue