This commit is contained in:
parent
5091ba45e9
commit
48fdb033f8
2 changed files with 9 additions and 8 deletions
13
Dockerfile
13
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"]
|
4
entrypoint.sh
Normal file
4
entrypoint.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
/usr/local/bin/dockerd-entrypoint.sh &
|
||||
sleep 5
|
||||
/bin/forgejo-runner
|
Loading…
Reference in a new issue