|
@ -166,12 +166,12 @@ RUN git clone https://github.com/shadowsocks/qtun.git && \ |
|
|
WORKDIR ./simple-obfs/ |
|
|
WORKDIR ./simple-obfs/ |
|
|
RUN git submodule update --init --recursive && \ |
|
|
RUN git submodule update --init --recursive && \ |
|
|
./autogen.sh && ./configure --disable-documentation && make && \ |
|
|
./autogen.sh && ./configure --disable-documentation && make && \ |
|
|
mv ./src//obfs-local ./src//obfs-server /plugins/ |
|
|
mv ./src/obfs-local ./src/obfs-server /plugins/ |
|
|
# Compile qtun |
|
|
# Compile qtun |
|
|
WORKDIR ../qtun/ |
|
|
WORKDIR ../qtun/ |
|
|
RUN cargo update |
|
|
RUN cargo update |
|
|
RUN cargo build --target-dir ./ --release && \ |
|
|
RUN cargo build --target-dir ./ --release && \ |
|
|
mv ./release//qtun-client ./release//qtun-server /plugins/ && \ |
|
|
mv ./release/qtun-client ./release/qtun-server /plugins/ && \ |
|
|
strip /plugins/* |
|
|
strip /plugins/* |
|
|
COPY --from=upx /upx/ /usr/ |
|
|
COPY --from=upx /upx/ /usr/ |
|
|
RUN upx -9 /plugins/qtun-* |
|
|
RUN upx -9 /plugins/qtun-* |
|
|