iptables-save every minute
This commit is contained in:
@ -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"]
|
||||
|
Reference in New Issue
Block a user