mirror of
				https://gitlab.crans.org/nounous/ghostream.git
				synced 2025-11-04 10:02:10 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			332 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			332 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
# Install dependencies and build
 | 
						|
FROM golang:1.15-alpine AS build_base
 | 
						|
RUN apk add --no-cache git
 | 
						|
WORKDIR /code
 | 
						|
COPY . .
 | 
						|
RUN go mod download
 | 
						|
RUN go build -o ./out/ghostream .
 | 
						|
 | 
						|
# Production image
 | 
						|
FROM alpine:3.12
 | 
						|
RUN apk add ca-certificates
 | 
						|
COPY --from=build_base /code/out/ghostream /app/ghostream
 | 
						|
EXPOSE 8080
 | 
						|
CMD ["/app/ghostream"] |