From 48fdb033f870373506df2612bed217f38ac25168 Mon Sep 17 00:00:00 2001 From: royalcat Date: Sun, 31 Mar 2024 14:30:22 +0300 Subject: [PATCH] fix --- Dockerfile | 13 +++++-------- entrypoint.sh | 4 ++++ 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index 8c8a223..b0d2759 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,16 @@ FROM code.forgejo.org/forgejo/runner:3.4.1 AS runner -FROM docker:26-dind-rootless - -USER root +FROM docker:26-dind RUN apk add --no-cache git bash -USER rootless - COPY --from=runner /bin/forgejo-runner /bin/forgejo-runner -ENV HOME=/data +COPY entrypoint.sh /usr/local/bin +RUN chmod +x /usr/local/bin/entrypoint.sh -USER 1000:1000 +ENV HOME=/data WORKDIR /data VOLUME ["/data"] -CMD ["/bin/forgejo-runner"] +ENTRYPOINT ["entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..ff5b2cd --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,4 @@ +#!/bin/sh +/usr/local/bin/dockerd-entrypoint.sh & +sleep 5 +/bin/forgejo-runner \ No newline at end of file