Dockerfile fix
This commit is contained in:
		
							parent
							
								
									3f5d3182fe
								
							
						
					
					
						commit
						eea3203a3b
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -7,12 +7,12 @@ RUN go mod download
 | 
			
		|||
 | 
			
		||||
COPY . .
 | 
			
		||||
 | 
			
		||||
RUN go build -o main.out ./cmd/main.go
 | 
			
		||||
RUN go build -o main.out ./main.go
 | 
			
		||||
 | 
			
		||||
FROM alpine:latest
 | 
			
		||||
 | 
			
		||||
COPY --from=builder /app/main.out /app/checkfile
 | 
			
		||||
COPY --from=builder /app/main.out /app/scanfile
 | 
			
		||||
 | 
			
		||||
EXPOSE 8080                            
 | 
			
		||||
 | 
			
		||||
CMD ["/app/checkfile"]
 | 
			
		||||
CMD ["/app/scanfile"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue