mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-24 18:10:55 +00:00
Some checks failed
Push or PR / build_n_test (macos-latest) (push) Has been cancelled
Push or PR / build_n_test (ubuntu-latest) (push) Has been cancelled
Push or PR / build_n_test (windows-latest) (push) Has been cancelled
Push or PR / build_n_test_android (push) Has been cancelled
Push or PR / build_n_test_ios (push) Has been cancelled
Push or PR / Check semver (push) Has been cancelled
Integration Tests / Proxy Tests (push) Has been cancelled
20 lines
723 B
Text
20 lines
723 B
Text
####################################################################################################
|
|
## Builder
|
|
####################################################################################################
|
|
FROM rust:latest AS builder
|
|
|
|
WORKDIR /worker
|
|
COPY ./ .
|
|
RUN cargo build --release
|
|
|
|
|
|
####################################################################################################
|
|
## Final image
|
|
####################################################################################################
|
|
FROM ubuntu:latest
|
|
|
|
RUN apt update && apt install -y iproute2 && apt clean all
|
|
|
|
COPY --from=builder /worker/target/release/tun2proxy-bin /usr/bin/tun2proxy-bin
|
|
|
|
ENTRYPOINT ["/usr/bin/tun2proxy-bin", "--setup"]
|