透明代理的旁路由虚拟网关
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
568 B

FROM alpine as asset
COPY ./asset.sh /
RUN apk --update add --no-cache curl wget && \
sh /asset.sh
FROM alpine
COPY . /tmp/xray
COPY --from=asset /tmp/asset/ /tmp/xray/asset/
RUN apk --update add --no-cache iptables ip6tables net-tools curl && \
mkdir -p /etc/xray/conf && \
mkdir -p /etc/xray/expose/log && \
mkdir -p /etc/xray/expose/segment && \
mv /tmp/xray/tproxy.sh / && \
mv /tmp/xray/load.sh /etc/xray/ && \
mv /tmp/xray/asset/xray /usr/bin/ && \
mv /tmp/xray/asset /etc/xray/ && \
rm -rf /tmp/xray
CMD ["sh","/tproxy.sh"]