1
0

iptables-save every minute

This commit is contained in:
2024-05-12 14:54:47 +02:00
parent ada1a8793a
commit 6a54d6edf2
5 changed files with 17 additions and 93 deletions

View File

@ -1,16 +1,11 @@
FROM rust:latest as builder
RUN rustup target add x86_64-unknown-linux-musl
RUN apt update && apt install -y musl-tools musl-dev
RUN update-ca-certificates
COPY . .
RUN cargo build --target x86_64-unknown-linux-musl --release
RUN cargo build --release
FROM ubuntu:latest
RUN apt update && apt upgrade -y && apt install iptables iptables-persistent -y
COPY --from=builder /target/x86_64-unknown-linux-musl/release/martillo-maldito ./
COPY --from=builder /target/release/martillo-maldito ./
CMD ["/martillo-maldito"]