runner/Dockerfile

17 lines
427 B
Docker
Raw Normal View History

FROM golang:1.21-alpine3.18 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
2023-04-30 16:13:11 +00:00
COPY . /srv
WORKDIR /srv
RUN make clean && make build
2023-04-30 16:13:11 +00:00
FROM alpine:3.18
RUN apk add --no-cache git bash tini
2023-04-30 16:13:11 +00:00
COPY --from=builder /srv/forgejo-runner /bin/forgejo-runner
COPY scripts/run.sh /opt/act/run.sh
2023-04-30 16:13:11 +00:00
ENTRYPOINT ["/sbin/tini","--","/opt/act/run.sh"]