fix
All checks were successful
docker / build-docker (push) Successful in 1m22s

This commit is contained in:
royalcat 2024-03-31 14:30:22 +03:00
parent 5091ba45e9
commit 48fdb033f8
2 changed files with 9 additions and 8 deletions

View file

@ -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"]

4
entrypoint.sh Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
/usr/local/bin/dockerd-entrypoint.sh &
sleep 5
/bin/forgejo-runner