1
0
martillo-maldito/Dockerfile

14 lines
347 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
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-09-22 03:33:48 +02:00
CMD [ "/martillo-maldito", "ban-server" ]