2023-04-30 17:13:11 +01:00
|
|
|
#Build stage
|
2023-07-12 10:12:27 +01:00
|
|
|
# Switch back to 1.20 instead of 1.20.5 when https://github.com/nektos/act/issues/1908 is resolved
|
|
|
|
FROM golang:1.20.5-alpine3.18 AS build-env
|
2023-04-30 17:13:11 +01:00
|
|
|
|
|
|
|
RUN apk --no-cache add build-base git
|
|
|
|
|
|
|
|
COPY . /srv
|
|
|
|
WORKDIR /srv
|
|
|
|
RUN make build
|
|
|
|
|
2023-05-30 10:47:06 +01:00
|
|
|
FROM alpine:3.18
|
2023-04-30 17:13:11 +01:00
|
|
|
LABEL maintainer="contact@forgejo.org"
|
|
|
|
|
|
|
|
COPY --from=build-env /srv/forgejo-runner /bin/forgejo-runner
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/forgejo-runner"]
|