enbas/.forgejo/actions/tests/Dockerfile
Dan Anglin 08981319e1
All checks were successful
Tests / test (pull_request) Successful in 59s
add Dockerfile to pre-install mage
2024-08-17 17:21:28 +01:00

14 lines
279 B
Docker

# syntax=docker/dockerfile:1
FROM golang:1.23.0 AS builder
RUN git clone https://github.com/magefile/mage \
&& cd mage \
&& git checkout v1.15.0 \
&& go run bootstrap.go
FROM golang:1.23.0-alpine
COPY --from=builder /go/bin/mage /go/bin/mage
ENTRYPOINT ["mage"]