2023-08-13 15:20:56 +03: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 19:13:11 +03:00
|
|
|
|
|
|
|
COPY . /srv
|
|
|
|
WORKDIR /srv
|
2023-08-13 15:20:56 +03:00
|
|
|
|
|
|
|
RUN make clean && make build
|
2023-04-30 19:13:11 +03:00
|
|
|
|
2023-05-30 12:47:06 +03:00
|
|
|
FROM alpine:3.18
|
2023-08-13 15:20:56 +03:00
|
|
|
RUN apk add --no-cache git bash tini
|
2023-04-30 19:13:11 +03:00
|
|
|
|
2023-08-13 15:20:56 +03:00
|
|
|
COPY --from=builder /srv/forgejo-runner /bin/forgejo-runner
|
|
|
|
COPY scripts/run.sh /opt/act/run.sh
|
2023-04-30 19:13:11 +03:00
|
|
|
|
2023-08-13 15:20:56 +03:00
|
|
|
ENTRYPOINT ["/sbin/tini","--","/opt/act/run.sh"]
|