diff --git a/Dockerfile b/Dockerfile index 421eabf..5aee039 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,6 @@ +### BUILDER STAGE +# +# FROM golang:1.24-alpine AS builder # Do not remove `git` here, it is required for getting runner version when executing `make build` @@ -11,6 +14,9 @@ WORKDIR /opt/src/act_runner RUN make clean && make build +### DIND STAGE +# +# FROM docker:dind AS dind RUN apk add --no-cache s6 bash git @@ -23,6 +29,9 @@ VOLUME /data ENTRYPOINT ["s6-svscan","/etc/s6"] +### DIND-ROOTLESS STAGE +# +# FROM docker:dind-rootless AS dind-rootless USER root @@ -41,8 +50,11 @@ ENV DOCKER_HOST=unix:///run/user/1000/docker.sock USER rootless ENTRYPOINT ["s6-svscan","/etc/s6"] +### FINAL STAGE +# +# FROM alpine AS basic -RUN apk add --no-cache tini bash git +RUN apk add --no-cache tini bash git tzdata COPY --from=builder /opt/src/act_runner/act_runner /usr/local/bin/act_runner COPY scripts/run.sh /usr/local/bin/run.sh