From c3580f35996e87bce37bc6feec26f32e31f60a32 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Mon, 29 Dec 2025 22:14:09 +0000 Subject: [PATCH] Build podman-based runner container --- Containerfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Containerfile diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..95daf63 --- /dev/null +++ b/Containerfile @@ -0,0 +1,32 @@ +### BUILDER STAGE +# +# +FROM docker.io/golang:1.24-alpine AS builder + +# Do not remove `git` here, it is required for getting runner version when executing `make build` +RUN apk add --no-cache make git + +ARG GOPROXY +ENV GOPROXY=${GOPROXY:-} + +COPY . /opt/src/act_runner +WORKDIR /opt/src/act_runner + +RUN make clean && make build + +### PINP VARIANT +# +# +FROM quay.io/containers/podman:v5.4 AS pinp + +RUN dnf install -y bash git tzdata && \ + dnf clean all && \ + rm -rf /var/cache/yum + +COPY --from=builder /opt/src/act_runner/act_runner /usr/local/bin/act_runner +COPY scripts/run.sh /usr/local/bin/run.sh + +VOLUME /data + +ENTRYPOINT ["/usr/local/bin/run.sh"] +