mirror of https://github.com/Dreamacro/clash.git
Fix: docker multiplatform build
This commit is contained in:
parent
18bb285a90
commit
5f3db72422
|
@ -3,10 +3,11 @@ FROM golang:alpine as builder
|
|||
RUN apk add --no-cache make git && \
|
||||
wget -O /Country.mmdb https://github.com/Dreamacro/maxmind-geoip/releases/latest/download/Country.mmdb
|
||||
WORKDIR /clash-src
|
||||
COPY --from=tonistiigi/xx:golang / /
|
||||
COPY . /clash-src
|
||||
RUN go mod download && \
|
||||
make linux-amd64 && \
|
||||
mv ./bin/clash-linux-amd64 /clash
|
||||
make docker && \
|
||||
mv ./bin/clash-docker /clash
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
|
|
Loading…
Reference in New Issue