mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 05:31:18 +08:00
21 lines
679 B
Docker
21 lines
679 B
Docker
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 && \
|
|
wget -O /qemu-arm-static https://github.com/multiarch/qemu-user-static/releases/latest/download/qemu-arm-static && \
|
|
chmod +x /qemu-arm-static
|
|
|
|
WORKDIR /clash-src
|
|
COPY . /clash-src
|
|
RUN go mod download && \
|
|
make linux-armv7 && \
|
|
mv ./bin/clash-linux-armv7 /clash
|
|
|
|
FROM arm32v7/alpine:latest
|
|
|
|
COPY --from=builder /qemu-arm-static /usr/bin/
|
|
COPY --from=builder /Country.mmdb /root/.config/clash/
|
|
COPY --from=builder /clash /
|
|
RUN apk add --no-cache ca-certificates
|
|
ENTRYPOINT ["/clash"]
|