FROM alpine:latest # 安装依赖 RUN apk add --no-cache curl tar python3 py3-pip # 下载并解压 gost WORKDIR /app RUN curl -L -o gost.tar.gz "https://github.com/go-gost/gost/releases/download/v3.0.0-nightly.20250110/gost_3.0.0-nightly.20250110_linux_amd64.tar.gz" \ && tar -xzf gost.tar.gz \ && rm gost.tar.gz \ && chmod +x gost # 安装 Flask RUN pip3 install flask # 复制 Flask 应用代码到容器中 COPY app /app # 暴露端口 EXPOSE 7860 # 启动 gost 和 Flask 应用 CMD ./gost -D -L rtcp://:30002/[::1]:20000 -F "relay+ws://antiproxy.xsms.eu.org:80?path=/3b451552-e776-45c5-9b98-bde3ab99bf75&host=antiproxy.xsms.eu.org" & \ ./gost -D -L socks5://[::1]:20000 & \ python3 /app/app.py