Init commit
This commit is contained in:
		
							
								
								
									
										12
									
								
								Containerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								Containerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
FROM golang:1.22
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
COPY go.mod ./
 | 
			
		||||
COPY go.sum ./
 | 
			
		||||
RUN go mod download
 | 
			
		||||
COPY *.go ./
 | 
			
		||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /softplayer-backend
 | 
			
		||||
 | 
			
		||||
FROM scratch
 | 
			
		||||
COPY --from=0 /app/softplayer-backend /bin/softplayer-backend
 | 
			
		||||
CMD ["/bin/softplayer-backend"]
 | 
			
		||||
		Reference in New Issue
	
	Block a user