You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
723 B
20 lines
723 B
####################################################################################################
|
|
## 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"]
|
|
|