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