mirror of
https://github.com/uditkarode/bml-proxy.git
synced 2025-02-23 01:32:14 +00:00
22 lines
405 B
Docker
22 lines
405 B
Docker
FROM rust:slim-bullseye AS build
|
|
|
|
WORKDIR /root
|
|
COPY . .
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y pkg-config \
|
|
build-essential \
|
|
openssl \
|
|
libssl-dev
|
|
|
|
RUN cargo build --release
|
|
|
|
FROM lwthiker/curl-impersonate:0.5-chrome-slim-bullseye
|
|
|
|
WORKDIR /root
|
|
COPY --from=build /root/target/release/bml_proxy /root/
|
|
|
|
ENV LD_PRELOAD="/usr/local/lib/libcurl-impersonate-chrome.so"
|
|
|
|
CMD /root/bml_proxy
|