mirror of
				https://github.com/nkanaev/yarr.git
				synced 2025-11-04 00:38:46 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			340 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			340 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
FROM golang:alpine AS build
 | 
						|
RUN apk add build-base git
 | 
						|
WORKDIR /src
 | 
						|
COPY . .
 | 
						|
RUN make build_linux
 | 
						|
 | 
						|
FROM alpine:latest
 | 
						|
RUN apk add --no-cache ca-certificates && \
 | 
						|
    update-ca-certificates
 | 
						|
COPY --from=build /src/_output/linux/yarr /usr/local/bin/yarr
 | 
						|
EXPOSE 7070
 | 
						|
CMD ["/usr/local/bin/yarr", "-addr", "0.0.0.0:7070", "-db", "/data/yarr.db"]
 |