2023-08-13 12:20:56 +00:00
|
|
|
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
|
2023-08-13 12:20:56 +00:00
|
|
|
|
|
|
|
RUN make clean && make build
|
2023-04-30 16:13:11 +00:00
|
|
|
|
2023-05-30 09:47:06 +00:00
|
|
|
FROM alpine:3.18
|
2023-08-13 12:20:56 +00:00
|
|
|
RUN apk add --no-cache git bash tini
|
2023-04-30 16:13:11 +00:00
|
|
|
|
2023-08-13 12:20:56 +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
|
|
|
|
2023-08-13 12:20:56 +00:00
|
|
|
ENTRYPOINT ["/sbin/tini","--","/opt/act/run.sh"]
|