This commit is contained in:
Shihaam Abdul Rahman 2022-09-24 04:27:39 +05:00
parent dd6d2e13e5
commit 1d9510e9df
Signed by: shihaam
GPG Key ID: 3B007D22E5584980
2 changed files with 4 additions and 3 deletions

View File

@ -11,12 +11,14 @@ RUN apt update \
RUN curl https://sh.rustup.rs -o rust \ RUN curl https://sh.rustup.rs -o rust \
&& sh rust -y && sh rust -y
RUN /root/.cargo/bin/cargo build --release RUN /root/.cargo/bin/cargo build --release
RUN apt purge curl build-essential libssl-dev pkg-config cargo -y
RUN mv /root/target/release/bml_proxy . RUN mv /root/target/release/bml_proxy .
RUN apt purge curl build-essential libssl-dev pkg-config cargo -y
RUN rm -rfv Cargo.lock Cargo.toml rust src Dockerfile \ RUN rm -rfv Cargo.lock Cargo.toml rust src Dockerfile \
docker-compose.yml rustup .cargo target .git .gitignore .rustup docker-compose.yml rustup .cargo target .git .gitignore .rustup
RUN cp -v bashrc .bashrc && cp -v profile .profile RUN cp -v bashrc .bashrc && cp -v profile .profile
ENV LD_PRELOAD=/root/libs/libcurl-impersonate-chrome.so
CMD ["./bml_proxy"] CMD ["./bml_proxy"]

View File

@ -8,5 +8,4 @@ services:
- 3030:3030 - 3030:3030
environment: environment:
- CURL_IMPERSONATE=chrome101 - CURL_IMPERSONATE=chrome101
- LD_PRELOAD=/usr/lib/libcurl-impersonate-chrome.so
restart: always restart: always