15 lines
		
	
	
	
		
			414 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			414 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM rust:1 as builder
 | 
						|
 | 
						|
RUN rustup target add x86_64-unknown-linux-musl && \
 | 
						|
    apt update && \
 | 
						|
    apt install -y musl-tools musl-dev && \
 | 
						|
    update-ca-certificates
 | 
						|
 | 
						|
COPY ./ /emgauwa
 | 
						|
WORKDIR /emgauwa
 | 
						|
RUN cargo build --target x86_64-unknown-linux-musl --release
 | 
						|
 | 
						|
FROM scratch
 | 
						|
COPY --from=builder /emgauwa/target/x86_64-unknown-linux-musl/release/emgauwa-core /usr/bin/emgauwa-core
 | 
						|
 | 
						|
CMD ["/usr/bin/emgauwa-core"]
 |