mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-05-18 07:53:08 +00:00
multi-arch build docker images (#141)
This commit is contained in:
parent
1ccba18273
commit
a5bc8f49b4
2 changed files with 14 additions and 2 deletions
|
@ -5,7 +5,7 @@ FROM rust:latest AS builder
|
|||
|
||||
WORKDIR /worker
|
||||
COPY ./ .
|
||||
RUN cargo build --release --target x86_64-unknown-linux-gnu
|
||||
RUN cargo build --release
|
||||
|
||||
|
||||
####################################################################################################
|
||||
|
@ -15,6 +15,6 @@ 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
|
||||
COPY --from=builder /worker/target/release/tun2proxy /usr/bin/tun2proxy
|
||||
|
||||
ENTRYPOINT ["/usr/bin/tun2proxy", "--setup"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue