forked from midefos/martillo-maldito
iptables-save every minute
This commit is contained in:
1 parent
ada1a8793a
commit
6a54d6edf2
5 files changed
+17
-93
No files matched your search
+2
-7
@@ -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