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