|
@ -359,16 +359,17 @@ COPY --from=upx /upx/ /usr/ |
|
|
RUN upx -9 /tmp/clash |
|
|
RUN upx -9 /tmp/clash |
|
|
|
|
|
|
|
|
# Download naiveproxy |
|
|
# Download naiveproxy |
|
|
FROM ${ALPINE_IMG} AS naiveproxy |
|
|
FROM ${ALPINE_IMG} AS naive |
|
|
ENV NAIVE_VERSION="v103.0.5060.53-3" |
|
|
ENV NAIVE_VERSION="v104.0.5112.79-2" |
|
|
RUN apk add curl libgcc jq |
|
|
RUN apk add curl libgcc jq |
|
|
RUN curl -sL https://api.github.com/repos/klzgrad/naiveproxy/releases/tags/${NAIVE_VERSION} \ |
|
|
RUN curl -sL https://api.github.com/repos/klzgrad/naiveproxy/releases/tags/${NAIVE_VERSION} \ |
|
|
| jq .assets | jq .[].name | grep naiveproxy-${NAIVE_VERSION}-openwrt-$(uname -m) \ |
|
|
| jq .assets | jq .[].name | grep naiveproxy-${NAIVE_VERSION}-openwrt-$(uname -m) \ |
|
|
| cut -b 2- | rev | cut -b 2- | rev | tac > list.dat |
|
|
| cut -b 2- | rev | cut -b 2- | rev | tac > list.dat |
|
|
RUN echo -e "while read FILE_NAME;do\nwget https://github.com/klzgrad/naiveproxy/releases/download/\${NAIVE_VERSION}/\${FILE_NAME}\n \ |
|
|
RUN echo "while read FILE_NAME; do" >> naive.sh && \ |
|
|
tar xf \${FILE_NAME} && ldd ./\$(echo \$FILE_NAME | rev | cut -b 8- | rev)/naive\n \ |
|
|
echo "wget https://github.com/klzgrad/naiveproxy/releases/download/\${NAIVE_VERSION}/\${FILE_NAME}" >> naive.sh && \ |
|
|
[ \$? -eq 0 ] && cp ./\$(echo \$FILE_NAME | rev | cut -b 8- | rev)/naive /tmp/ && break\ndone < list.dat" > naiveproxy.sh && \ |
|
|
echo "tar xf \${FILE_NAME} && ldd ./\$(echo \$FILE_NAME | rev | cut -b 8- | rev)/naive" >> naive.sh && \ |
|
|
sh naiveproxy.sh |
|
|
echo "[ \$? -eq 0 ] && cp ./\$(echo \$FILE_NAME | rev | cut -b 8- | rev)/naive /tmp/ && break" >> naive.sh && \ |
|
|
|
|
|
echo "done < list.dat" >> naive.sh && sh naive.sh |
|
|
COPY --from=build-base /apk/ /apk/ |
|
|
COPY --from=build-base /apk/ /apk/ |
|
|
RUN /apk/build-base && strip /tmp/naive |
|
|
RUN /apk/build-base && strip /tmp/naive |
|
|
|
|
|
|
|
@ -475,9 +476,9 @@ COPY --from=trojan /tmp/trojan* /asset/usr/bin/ |
|
|
COPY --from=gost /tmp/gost* /asset/usr/bin/ |
|
|
COPY --from=gost /tmp/gost* /asset/usr/bin/ |
|
|
COPY --from=brook /tmp/brook /asset/usr/bin/ |
|
|
COPY --from=brook /tmp/brook /asset/usr/bin/ |
|
|
COPY --from=clash /tmp/clash /asset/usr/bin/ |
|
|
COPY --from=clash /tmp/clash /asset/usr/bin/ |
|
|
|
|
|
COPY --from=naive /tmp/naive /asset/usr/bin/ |
|
|
COPY --from=snell /tmp/snell-* /asset/usr/bin/ |
|
|
COPY --from=snell /tmp/snell-* /asset/usr/bin/ |
|
|
COPY --from=hysteria /tmp/hysteria /asset/usr/bin/ |
|
|
COPY --from=hysteria /tmp/hysteria /asset/usr/bin/ |
|
|
COPY --from=naiveproxy /tmp/naive /asset/usr/bin/ |
|
|
|
|
|
COPY --from=relaybaton /tmp/relaybaton /asset/usr/bin/ |
|
|
COPY --from=relaybaton /tmp/relaybaton /asset/usr/bin/ |
|
|
COPY --from=pingtunnel /tmp/pingtunnel /asset/usr/bin/ |
|
|
COPY --from=pingtunnel /tmp/pingtunnel /asset/usr/bin/ |
|
|
COPY --from=wireproxy /tmp/wireproxy /asset/usr/bin/ |
|
|
COPY --from=wireproxy /tmp/wireproxy /asset/usr/bin/ |
|
@ -492,4 +493,4 @@ RUN apk add --no-cache boost-program_options c-ares \ |
|
|
ln -s /usr/local/share/ProxyC/main.py /usr/bin/proxyc |
|
|
ln -s /usr/local/share/ProxyC/main.py /usr/bin/proxyc |
|
|
COPY --from=asset /asset / |
|
|
COPY --from=asset /asset / |
|
|
EXPOSE 7839 |
|
|
EXPOSE 7839 |
|
|
CMD ["proxyc"] |
|
|
ENTRYPOINT ["proxyc"] |
|
|