1
0

WIP moving code into lib

This commit is contained in:
2024-12-31 03:57:40 +01:00
parent 41abf04a63
commit 20f1038ff8
9 changed files with 448 additions and 420 deletions

View File

@ -3,11 +3,12 @@ FROM rust:latest as builder
COPY . .
RUN cargo build --release
# ===============================================================================
FROM ubuntu:latest
RUN apt update && apt upgrade -y && apt install iptables iptables-persistent systemd -y
RUN apt update \
&& apt upgrade -y \
&& apt install iptables iptables-persistent systemd -y
COPY --from=builder /target/release/martillo-maldito ./
CMD [ "/martillo-maldito", "ban-server" ]
CMD [ "/martillo-maldito", "ban-service" ]