Build podman-based runner container
All checks were successful
checks / check and test (push) Successful in 42s
All checks were successful
checks / check and test (push) Successful in 42s
This commit is contained in:
32
Containerfile
Normal file
32
Containerfile
Normal 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"]
|
||||
|
||||
Reference in New Issue
Block a user