1
Some checks failed
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test/1 unknown status
ci/woodpecker/pr/test/2 unknown status
ci/woodpecker/pr/build Pipeline failed

1
This commit is contained in:
Stephan Schnabel 2025-06-19 16:50:32 +02:00
parent 7db99e0fa6
commit f433482dcd
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
6 changed files with 125 additions and 78 deletions

View file

@ -34,9 +34,17 @@ RUN --mount=type=bind,from=download,source=/tmp/docker,target=/tmp/docker \
apt-get -qq install --yes --no-install-recommends ca-certificates uidmap slirp4netns dbus-user-session iproute2 /tmp/docker/*.deb && \
rm -rf /etc/*- /var/lib/dpkg/*-old /var/lib/dpkg/status
RUN useradd dockerd --uid 1000 --home-dir /woodpecker/docker --create-home && \
RUN useradd dockerd --uid 1000 --home-dir /home/docker --create-home && rm /etc/*- /home/docker/.* && \
echo dockerd:100000:65536 >/etc/subuid && \
echo dockerd:100000:65536 >/etc/subgid
USER 1000
COPY --chmod=555 entrypoint.sh /usr/bin/entrypoint.sh
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
RUN --mount=type=bind,from=download,source=/tmp/docker,target=/tmp/docker \
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
--mount=type=tmpfs,target=/var/log \
--mount=type=tmpfs,target=/var/cache \
ls -lA /tmp/docker/ && \
apt-get -qq update && \
apt-get -qq install --yes --no-install-recommends htop wget curl net-tools && \
rm -rf /etc/*- /var/lib/dpkg/*-old /var/lib/dpkg/status
USER 1000