2024-05-12 13:46:11 +02:00
|
|
|
FROM rust:latest as builder
|
|
|
|
|
|
|
|
COPY . .
|
2024-05-12 14:54:47 +02:00
|
|
|
RUN cargo build --release
|
2024-05-12 13:46:11 +02:00
|
|
|
|
2024-08-09 16:07:47 +02:00
|
|
|
# ===============================================================================
|
|
|
|
|
2024-05-12 13:46:11 +02:00
|
|
|
FROM ubuntu:latest
|
|
|
|
|
|
|
|
RUN apt update && apt upgrade -y && apt install iptables iptables-persistent -y
|
2024-05-12 14:54:47 +02:00
|
|
|
COPY --from=builder /target/release/martillo-maldito ./
|
2024-05-12 13:46:11 +02:00
|
|
|
|
2024-05-28 16:03:32 +02:00
|
|
|
CMD [ "/martillo-maldito", "ban-server", "-f", "/host_ssh/auth.log", "-s", "/host_iptables/rules.v4" ]
|