2020-03-11 18:52:35 +08:00
|
|
|
FROM v2fly/v2fly-core AS v2ray
|
2020-10-15 23:19:30 +08:00
|
|
|
RUN ls /usr/local/share/v2ray || (mkdir -p /usr/local/share/v2ray && touch /usr/local/share/v2ray/.copykeep)
|
2020-03-11 18:52:35 +08:00
|
|
|
|
2019-12-30 19:20:01 +08:00
|
|
|
FROM golang:alpine
|
2020-03-29 01:23:49 +08:00
|
|
|
RUN apk --no-cache add iptables git
|
2019-12-30 19:20:01 +08:00
|
|
|
ENV GO111MODULE=on
|
2019-12-02 19:01:39 +08:00
|
|
|
ENV GOPROXY=https://goproxy.cn
|
2019-11-26 08:58:24 +08:00
|
|
|
RUN go get github.com/codegangsta/gin
|
2019-11-04 06:44:18 +08:00
|
|
|
WORKDIR /service
|
2020-08-20 07:20:45 +08:00
|
|
|
RUN mkdir -p /etc/v2raya/web
|
2020-10-15 23:05:51 +08:00
|
|
|
COPY --from=v2ray /usr/bin/v2ray /usr/bin/v2ctl /usr/share/v2ray/
|
|
|
|
COPY --from=v2ray /usr/bin/*.dat /usr/local/share/v2ray/
|
|
|
|
COPY --from=v2ray /usr/local/share/v2ray/* /usr/local/share/v2ray/
|
2020-03-11 18:52:35 +08:00
|
|
|
ENV PATH=$PATH:/etc/v2ray
|
2019-11-19 07:31:50 +08:00
|
|
|
ENV CONFIG=../config.json
|
2020-04-19 03:30:00 +08:00
|
|
|
ENV GIN_BIN=../v2rayA
|
2019-11-26 08:58:24 +08:00
|
|
|
ENV GIN_GUILD_ARGS="-o ${GIN_BIN}"
|
2020-03-11 18:52:35 +08:00
|
|
|
ENV V2RAYA_MODE=universal
|
2019-11-26 08:58:24 +08:00
|
|
|
EXPOSE 2017
|
2020-03-11 18:52:35 +08:00
|
|
|
ENTRYPOINT gin -a 2017 -i run
|