mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-20 13:59:10 +00:00
21 lines
770 B
Text
21 lines
770 B
Text
|
####################################################################################################
|
||
|
## Builder
|
||
|
####################################################################################################
|
||
|
FROM rust:latest AS builder
|
||
|
|
||
|
WORKDIR /worker
|
||
|
COPY ./ .
|
||
|
RUN cargo build --release --target x86_64-unknown-linux-gnu
|
||
|
|
||
|
|
||
|
####################################################################################################
|
||
|
## Final image
|
||
|
####################################################################################################
|
||
|
FROM ubuntu:latest
|
||
|
|
||
|
RUN apt update && apt install -y iproute2 && apt clean all
|
||
|
|
||
|
COPY --from=builder /worker/target/x86_64-unknown-linux-gnu/release/tun2proxy /usr/bin/tun2proxy
|
||
|
|
||
|
ENTRYPOINT ["/usr/bin/tun2proxy", "--setup"]
|