|
@ -270,6 +270,7 @@ mv ./target/release/qtun-client /tmp/release/ && \ |
|
|
mv ./target/release/qtun-server /tmp/release/ |
|
|
mv ./target/release/qtun-server /tmp/release/ |
|
|
|
|
|
|
|
|
FROM alpine:3.15 as asset |
|
|
FROM alpine:3.15 as asset |
|
|
|
|
|
COPY . /tmp/asset/local/share/ProxyC |
|
|
COPY --from=build /tmp/release/ /tmp/release/ |
|
|
COPY --from=build /tmp/release/ /tmp/release/ |
|
|
RUN apk add gcc python3 upx && \ |
|
|
RUN apk add gcc python3 upx && \ |
|
|
mkdir -p /tmp/asset/bin/ && mkdir -p /tmp/asset/lib/ && \ |
|
|
mkdir -p /tmp/asset/bin/ && mkdir -p /tmp/asset/lib/ && \ |
|
@ -289,7 +290,6 @@ mkdir -p /tmp/asset/lib/$PYTHON_DIR/ && \ |
|
|
mv /tmp/packages/ /tmp/asset/lib/$PYTHON_DIR/site-packages/ |
|
|
mv /tmp/packages/ /tmp/asset/lib/$PYTHON_DIR/site-packages/ |
|
|
|
|
|
|
|
|
FROM alpine:3.15 |
|
|
FROM alpine:3.15 |
|
|
COPY . /usr/local/share/ProxyC |
|
|
|
|
|
COPY --from=asset /tmp/asset/ /usr/ |
|
|
COPY --from=asset /tmp/asset/ /usr/ |
|
|
RUN apk add --no-cache boost-program_options boost-system c-ares ca-certificates \ |
|
|
RUN apk add --no-cache boost-program_options boost-system c-ares ca-certificates \ |
|
|
glib libev libsodium libstdc++ mbedtls pcre python3 redis udns && \ |
|
|
glib libev libsodium libstdc++ mbedtls pcre python3 redis udns && \ |
|
@ -305,4 +305,4 @@ ln -s $PKG_DIR/ss-python-legacy/server.py /usr/bin/ss-python-legacy-server && \ |
|
|
ln -s /usr/bin/python3 /usr/bin/python && \ |
|
|
ln -s /usr/bin/python3 /usr/bin/python && \ |
|
|
cp /usr/local/share/ProxyC/docker/init.sh /usr/bin/ |
|
|
cp /usr/local/share/ProxyC/docker/init.sh /usr/bin/ |
|
|
EXPOSE 43581 |
|
|
EXPOSE 43581 |
|
|
CMD ["sh","/usr/bin/init.sh"] |
|
|
CMD ["sh","/usr/bin/init.sh"] |
|
|