Skip to content

Commit

Permalink
chore: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyYe committed Mar 3, 2024
1 parent 9f7ae15 commit 14f216a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 /

Expand Down

0 comments on commit 14f216a

Please sign in to comment.