mirror of
https://github.com/uditkarode/bml-proxy.git
synced 2025-04-20 01:27:06 +00:00
Dockerfile
This commit is contained in:
parent
48b11221fe
commit
108171f8be
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
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"]
|
12
docker-compose.yml
Normal file
12
docker-compose.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
version: '3.5'
|
||||||
|
services:
|
||||||
|
#########################
|
||||||
|
bmlapi-proxy:
|
||||||
|
build: .
|
||||||
|
image: bmlapi-proxy
|
||||||
|
ports:
|
||||||
|
- 3030:3030
|
||||||
|
environment:
|
||||||
|
- CURL_IMPERSONATE=chrome101
|
||||||
|
- LD_PRELOAD=/usr/lib/libcurl-impersonate-chrome.so
|
||||||
|
restart: always
|
Loading…
x
Reference in New Issue
Block a user