mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-10-28 09:12:41 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			476 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			476 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM rust:alpine as builder
 | |
| RUN apk add --no-cache musl-dev
 | |
| WORKDIR /app
 | |
| 
 | |
| # FIX: see https://github.com/rust-lang/cargo/issues/2644
 | |
| RUN mkdir src/ && touch src/lib.rs
 | |
| COPY Cargo.toml Cargo.lock ./
 | |
| ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
 | |
| RUN cargo build
 | |
| RUN rm src/lib.rs
 | |
| 
 | |
| COPY src src
 | |
| RUN cargo install --path .
 | |
| 
 | |
| FROM alpine
 | |
| RUN apk add --no-cache ffmpeg mediainfo musl-dev
 | |
| COPY --from=builder /usr/local/cargo/bin/transcoder ./transcoder
 | |
| 
 | |
| EXPOSE 7666
 | |
| CMD ./transcoder
 |