1
1
This commit is contained in:
parent
7db99e0fa6
commit
f61257a765
5 changed files with 74 additions and 80 deletions
13
Dockerfile
13
Dockerfile
|
@ -25,18 +25,23 @@ RUN ARCH=$(dpkg --print-architecture) && curl --fail --silent --parallel --remot
|
|||
|
||||
FROM docker.io/library/debian:12.11-slim@sha256:e5865e6858dacc255bead044a7f2d0ad8c362433cfaa5acefb670c1edf54dfef
|
||||
SHELL ["/bin/bash", "-u", "-e", "-o", "pipefail", "-c"]
|
||||
RUN --mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
|
||||
--mount=type=tmpfs,target=/var/log \
|
||||
--mount=type=tmpfs,target=/var/cache \
|
||||
apt-get -qq update && \
|
||||
apt-get -qq install --yes --no-install-recommends ca-certificates uidmap slirp4netns dbus-user-session iproute2 && \
|
||||
rm -rf /etc/*- /var/lib/dpkg/*-old /var/lib/dpkg/status
|
||||
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 ca-certificates uidmap slirp4netns dbus-user-session iproute2 /tmp/docker/*.deb && \
|
||||
apt-get -qq install --yes --no-install-recommends /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"]
|
||||
USER 1000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue