mirror of
				https://github.com/byReqz/probehost2.git
				synced 2025-11-03 16:01:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			246 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			246 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM golang:latest as builder
 | 
						|
WORKDIR /build
 | 
						|
COPY . .
 | 
						|
RUN go get -u
 | 
						|
RUN CGO_ENABLED=0 go build -o probehost2
 | 
						|
 | 
						|
FROM alpine:latest
 | 
						|
RUN apk update
 | 
						|
RUN apk add mtr
 | 
						|
COPY --from=builder /build/probehost2 /
 | 
						|
RUN touch /probehost2.log
 | 
						|
CMD ["/probehost2"]
 |