bml-proxy/Dockerfile

18 lines
521 B
Docker
Raw Normal View History

2022-09-24 03:47:01 +05:00
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
2022-09-24 04:07:06 +05:00
RUN /root/.cargo/bin/cargo build --release
2022-09-24 03:47:01 +05:00
RUN apt purge curl build-essential libssl-dev pkg-config cargo -y
RUN mv /root/target/release/bml_proxy .
2022-09-24 04:19:43 +05:00
RUN rm -rfv Cargo.lock Cargo.toml .bashrc libs rust src Dockerfile docker-compose.yml rustup .cargo target .git .gitignore .rustup
2022-09-24 03:47:01 +05:00
CMD ["./bml_proxy"]