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
|
2021-04-17 23:21:54 +08:00
|
|
|
RUN apk --no-cache add iptables ip6tables 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
|
2024-04-03 10:08:09 +08:00
|
|
|
RUN go install github.com/codegangsta/gin@latest
|
2019-11-04 06:44:18 +08:00
|
|
|
WORKDIR /service
|
2024-04-03 10:08:09 +08:00
|
|
|
COPY --from=v2ray /usr/bin/v2ray /usr/share/v2ray/
|
2020-10-15 23:05:51 +08:00
|
|
|
COPY --from=v2ray /usr/local/share/v2ray/* /usr/local/share/v2ray/
|
2020-10-16 19:59:47 +08:00
|
|
|
ENV PATH=$PATH:/usr/share/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}"
|
|
|
|
EXPOSE 2017
|
2020-03-11 18:52:35 +08:00
|
|
|
ENTRYPOINT gin -a 2017 -i run
|