runner-docker/Dockerfile
ItzYanick 671b4be8fb
All checks were successful
docker
More fixes
2023-03-24 13:34:44 +01:00

24 lines
No EOL
454 B
Docker

ARG CHECKOUT=main
# Go container
FROM golang:1.20.2-alpine3.17 AS GO_BUILD
ARG CHECKOUT
RUN apk fix && \
apk --no-cache --update add git make
RUN mkdir /build
RUN git clone https://code.forgejo.org/forgejo/runner.git /build/runner \
&& cd /build/runner \
&& git checkout $CHECKOUT
WORKDIR /build/runner
RUN make build
# --
# Final Container
FROM alpine:3.17
COPY --from=GO_BUILD /build/runner/forgejo-runner ./
CMD ["./forgejo-runner"]