mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-31 16:32:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			330 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			330 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM golang:1.18.0 as build
 | |
| 
 | |
| WORKDIR /openim
 | |
| COPY . .
 | |
| 
 | |
| RUN make fmt && make tidy
 | |
| RUN make transfer
 | |
| 
 | |
| FROM ubuntu
 | |
| 
 | |
| WORKDIR /openim
 | |
| VOLUME ["/openim/logs","/openim/bin"]
 | |
| 
 | |
| #Copy binary files to the blank image
 | |
| COPY --from=build /openim/bin /openim/bin
 | |
| COPY --from=build /openim/config /openim/config
 | |
| 
 | |
| CMD ["./bin/openim-msgtransfer"]
 |