forked from tun2proxy/tun2proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (15 loc) · 813 Bytes
/
Dockerfile
File metadata and controls
21 lines (15 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
####################################################################################################
## 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
COPY --from=builder /worker/scripts/entrypoint.sh /usr/bin/scripts/entrypoint.sh
ENTRYPOINT ["sh", "-c", "/usr/bin/scripts/entrypoint.sh"]