mirror of
https://github.com/uditkarode/bml-proxy.git
synced 2025-02-23 01:32:14 +00:00
23 lines
617 B
Docker
23 lines
617 B
Docker
FROM lwthiker/curl-impersonate
|
|
|
|
WORKDIR /root
|
|
|
|
COPY . .
|
|
|
|
RUN cp -v .bashrc bashrc && cp .profile profile
|
|
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 /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 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
|
|
|
|
CMD ["./bml_proxy"]
|