From 14f216a223ae201c612d03386a5febc6a3c29bb1 Mon Sep 17 00:00:00 2001 From: Timothy Date: Mon, 4 Mar 2024 01:13:43 +0800 Subject: [PATCH] chore: update Dockerfile --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 04ddf41..5a9821e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,13 @@ WORKDIR /knockd RUN cargo build --release --target=x86_64-unknown-linux-musl FROM alpine + +# Install iptables RUN apk add --no-cache iptables +# Create a symbolic link from /sbin/iptables to /usr/sbin/iptables +RUN ln -s /sbin/iptables /usr/sbin/iptables + # Copy the binary from the builder stage COPY --from=builder /knockd/target/x86_64-unknown-linux-musl/release/knockd /