v2rayA/Dockerfile.dev

20 lines
696 B
Docker
Raw Normal View History

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)
FROM golang:alpine
RUN apk --no-cache add iptables git
ENV GO111MODULE=on
2019-12-02 19:01:39 +08:00
ENV GOPROXY=https://goproxy.cn
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/
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
ENV GIN_GUILD_ARGS="-o ${GIN_BIN}"
ENV V2RAYA_MODE=universal
EXPOSE 2017
ENTRYPOINT gin -a 2017 -i run