Dockerfile
This commit is contained in:
		
							
								
								
									
										12
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
FROM golang:alpine AS build
 | 
			
		||||
 | 
			
		||||
WORKDIR /tmp/nomad-resource
 | 
			
		||||
COPY . .
 | 
			
		||||
 | 
			
		||||
RUN go build -o dist/out out/main.go
 | 
			
		||||
 | 
			
		||||
FROM alpine:edge
 | 
			
		||||
 | 
			
		||||
RUN apk add --no-cache --update nomad
 | 
			
		||||
 | 
			
		||||
COPY --from=build /tmp/nomad-resource/dist/* /opt/resource/
 | 
			
		||||
		Reference in New Issue
	
	Block a user