multi-arch build docker images (#141)

This commit is contained in:
Paper-Dragon 2024-09-16 17:10:56 +08:00 committed by GitHub
parent 1ccba18273
commit a5bc8f49b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 2 deletions

View file

@ -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"]