mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
1. use http://www.alibaba.com instead of https://www.youtube.com to test more accurate latency 2. now will report transparent proxy error 3. shorter timeout of closing SSR 4. optional enhanced mode and closed dns anti-pollution 5. use another port for transparent proxy instead of 12345 6. some other adjustments
26 lines
672 B
Docker
26 lines
672 B
Docker
FROM mzz2017/git:alpine AS version
|
|
WORKDIR /build
|
|
ADD .git ./.git
|
|
RUN git describe --abbrev=0 --tags > ./version
|
|
|
|
|
|
FROM golang:alpine AS builder
|
|
ADD service /build/service
|
|
WORKDIR /build/service
|
|
ENV GO111MODULE=on
|
|
ENV GOPROXY=https://goproxy.io
|
|
COPY --from=version /build/version ./
|
|
RUN export VERSION=$(cat ./version) && go build -ldflags="-X v2rayA/global.Version=${VERSION:1}" -o v2raya .
|
|
|
|
FROM v2fly/v2fly-core AS v2ray
|
|
|
|
FROM bgiddings/iptables:latest
|
|
WORKDIR /v2raya
|
|
COPY --from=builder /build/service/v2raya /usr/bin/
|
|
COPY --from=v2ray /usr/bin/v2ray/* /etc/v2ray/
|
|
ENV PATH=$PATH:/etc/v2ray
|
|
ENV GIN_MODE=release
|
|
EXPOSE 2017
|
|
ENTRYPOINT ["v2raya","--mode=universal"]
|
|
|