mirror of
https://github.com/uditkarode/bml-proxy.git
synced 2025-04-20 01:27:06 +00:00
comments
This commit is contained in:
parent
1d9510e9df
commit
981e4d4f21
12
Dockerfile
12
Dockerfile
@ -4,21 +4,29 @@ WORKDIR /root
|
||||
|
||||
COPY . .
|
||||
|
||||
#backup
|
||||
RUN cp -v .bashrc bashrc && cp .profile profile
|
||||
|
||||
# required stuff for compiling
|
||||
RUN apt update \
|
||||
&& apt install curl build-essential libssl-dev pkg-config -y --no-install-recommends
|
||||
|
||||
RUN curl https://sh.rustup.rs -o rust \
|
||||
&& sh rust -y
|
||||
|
||||
# Compile
|
||||
RUN /root/.cargo/bin/cargo build --release
|
||||
|
||||
|
||||
# move bin to working dir
|
||||
RUN mv /root/target/release/bml_proxy .
|
||||
|
||||
## Clean up
|
||||
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
|
||||
|
||||
#default variable
|
||||
ENV LD_PRELOAD=/root/libs/libcurl-impersonate-chrome.so
|
||||
|
||||
# start service
|
||||
CMD ["./bml_proxy"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user