15 lines
279 B
Docker
15 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"]
|