bml-proxy/Dockerfile
2022-09-24 03:47:01 +05:00

18 lines
482 B
Docker

FROM lwthiker/curl-impersonate
WORKDIR /root
COPY . .
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
RUN /bin/bash -c "cargo build --release"
RUN apt purge curl build-essential libssl-dev pkg-config cargo -y
RUN mv /root/target/release/bml_proxy .
RUN rm -rf Cargo.lock Dockerfile docker-compose.yml rustup .cargo target .git .gitignore .rustup
CMD ["./bml_proxy"]