33 lines
651 B
Docker
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"]
|
|
|