mirror of https://github.com/breard-r/acmed.git
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							14 lines
						
					
					
						
							408 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							14 lines
						
					
					
						
							408 B
						
					
					
				
								ARG TARGET=buster
							 | 
						|
								
							 | 
						|
								FROM rust:1-$TARGET as builder
							 | 
						|
								
							 | 
						|
								WORKDIR /code
							 | 
						|
								COPY . .
							 | 
						|
								RUN cargo build --release
							 | 
						|
								
							 | 
						|
								FROM debian:$TARGET-slim
							 | 
						|
								
							 | 
						|
								RUN apt-get update && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
							 | 
						|
								COPY --from=builder /code/target/release/acmed /usr/local/bin/acmed
							 | 
						|
								COPY --from=builder /code/target/release/tacd  /usr/local/bin/tacd
							 | 
						|
								CMD ["/usr/local/bin/acmed", "-f", "--log-stderr"]
							 |