From 1d9510e9df5aed61c9fba3b46c321dc4843dba55 Mon Sep 17 00:00:00 2001 From: Shiham Abdul Rahman Date: Sat, 24 Sep 2022 04:27:39 +0500 Subject: [PATCH] comments --- Dockerfile | 6 ++++-- docker-compose.yml | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d3ef534..dccecc5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,12 +11,14 @@ RUN apt update \ RUN curl https://sh.rustup.rs -o rust \ && sh rust -y 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 apt purge curl build-essential libssl-dev pkg-config cargo -y RUN rm -rfv Cargo.lock Cargo.toml rust src Dockerfile \ docker-compose.yml rustup .cargo target .git .gitignore .rustup - RUN cp -v bashrc .bashrc && cp -v profile .profile +ENV LD_PRELOAD=/root/libs/libcurl-impersonate-chrome.so + CMD ["./bml_proxy"] diff --git a/docker-compose.yml b/docker-compose.yml index 8c40e40..40f4785 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,5 +8,4 @@ services: - 3030:3030 environment: - CURL_IMPERSONATE=chrome101 - - LD_PRELOAD=/usr/lib/libcurl-impersonate-chrome.so restart: always