1
0
martillo-maldito/Dockerfile

15 lines
282 B
Docker
Raw Normal View History

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
FROM ubuntu:latest
2024-12-31 03:57:40 +01:00
RUN apt update \
&& apt upgrade -y \
&& apt install iptables iptables-persistent systemd -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-12-31 03:57:40 +01:00
CMD [ "/martillo-maldito", "ban-service" ]