mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
17 lines
666 B
Docker
17 lines
666 B
Docker
FROM golang:buster
|
|
# RUN echo "192.30.253.112 github.com" >"/etc/hosts"
|
|
# RUN echo "151.101.185.194 github.global.ssl.fastly.net" >>"/etc/hosts"
|
|
RUN go get github.com/codegangsta/gin
|
|
RUN echo "deb http://mirrors.ustc.edu.cn/debian buster main contrib non-free" > /etc/apt/sources.list
|
|
RUN echo "deb http://mirrors.ustc.edu.cn/debian buster-updates main contrib non-free" >> /etc/apt/sources.list
|
|
RUN apt-get update
|
|
RUN apt-get install -y psmisc ca-certificates
|
|
RUN apt-get install -y iptables
|
|
WORKDIR /service
|
|
ENV GOPROXY=https://goproxy.io
|
|
ENV CONFIG=../config.json
|
|
ENV GIN_BIN=../V2RayA
|
|
ENV GIN_GUILD_ARGS="-o ${GIN_BIN}"
|
|
EXPOSE 2017
|
|
ENTRYPOINT gin -a 2017 -i run
|