Build podman-based runner container
All checks were successful
checks / check and test (push) Successful in 42s

This commit is contained in:
Ben Roberts
2025-12-29 22:14:09 +00:00
parent 90d11b8692
commit c3580f3599

32
Containerfile Normal file
View File

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