Files
act_runner/Containerfile
Ben Roberts c3580f3599
All checks were successful
checks / check and test (push) Successful in 42s
Build podman-based runner container
2025-12-29 22:14:09 +00:00

33 lines
651 B
Docker

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