1
0
martillo-maldito/Dockerfile
2024-08-09 16:07:47 +02:00

14 lines
408 B
Docker

FROM rust:latest as builder
COPY . .
RUN cargo build --release
# ===============================================================================
FROM ubuntu:latest
RUN apt update && apt upgrade -y && apt install iptables iptables-persistent -y
COPY --from=builder /target/release/martillo-maldito ./
CMD [ "/martillo-maldito", "ban-server", "-f", "/host_ssh/auth.log", "-s", "/host_iptables/rules.v4" ]