17 lines
		
	
	
		
			439 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			439 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM rust:latest as builder
 | 
						|
 | 
						|
RUN rustup target add x86_64-unknown-linux-musl
 | 
						|
RUN apt update && apt install -y musl-tools musl-dev
 | 
						|
RUN update-ca-certificates
 | 
						|
 | 
						|
COPY . .
 | 
						|
 | 
						|
RUN cargo build --target x86_64-unknown-linux-musl --release
 | 
						|
 | 
						|
FROM ubuntu:latest
 | 
						|
 | 
						|
RUN apt update && apt upgrade -y && apt install iptables iptables-persistent -y
 | 
						|
COPY --from=builder /target/x86_64-unknown-linux-musl/release/martillo-maldito ./
 | 
						|
 | 
						|
CMD ["/martillo-maldito"]
 |