12 lines
		
	
	
		
			247 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			247 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM rust:1 AS builder
 | 
						|
 | 
						|
WORKDIR /usr/src/mqtt-exporter
 | 
						|
COPY src/ ./src
 | 
						|
COPY Cargo.* .
 | 
						|
 | 
						|
RUN cargo install --path . --root /app
 | 
						|
 | 
						|
FROM debian:bookworm-slim
 | 
						|
COPY --from=builder /app/bin/mqtt-exporter /usr/local/bin/mqtt-exporter
 | 
						|
 | 
						|
CMD ["mqtt-exporter"] |