bml-proxy/Dockerfile

23 lines
617 B
Docker
Raw Normal View History

2022-09-24 03:47:01 +05:00
FROM lwthiker/curl-impersonate
WORKDIR /root
COPY . .
2022-09-24 04:22:23 +05:00
RUN cp -v .bashrc bashrc && cp .profile profile
2022-09-24 03:47:01 +05:00
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:22:23 +05:00
RUN rm -rfv Cargo.lock Cargo.toml libs rust src Dockerfile \
docker-compose.yml rustup .cargo target .git .gitignore .rustup
RUN cp -v bashrc .bashrc && cp -v profile .profile
2022-09-24 03:47:01 +05:00
CMD ["./bml_proxy"]