mirror of
				https://github.com/onyx-and-iris/q3rcon-proxy.git
				synced 2025-11-03 22:31:48 +00:00 
			
		
		
		
	upd dockerfile for q3rcon
This commit is contained in:
		
							parent
							
								
									fd4f873c9c
								
							
						
					
					
						commit
						660a1a9184
					
				
							
								
								
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							@ -1,10 +1,12 @@
 | 
				
			|||||||
FROM golang:alpine
 | 
					FROM golang:alpine
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Move to /dist directory as the place for resulting binary folder
 | 
					 | 
				
			||||||
WORKDIR /dist
 | 
					WORKDIR /dist
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Copy binary from build to main folder
 | 
					COPY . .
 | 
				
			||||||
COPY ./main .
 | 
					
 | 
				
			||||||
 | 
					# build binary and place into /usr/local/bin
 | 
				
			||||||
 | 
					RUN go mod download && go mod verify
 | 
				
			||||||
 | 
					RUN go build -v -o /usr/local/bin/q3rcon-proxy ./cmd/q3rcon-proxy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Command to run when starting the container
 | 
					# Command to run when starting the container
 | 
				
			||||||
ENTRYPOINT [ "/dist/main" ]
 | 
					ENTRYPOINT [ "q3rcon-proxy" ]
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user