mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			751 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			751 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| 
 | |
| ############################################################
 | |
| # build
 | |
| ############################################################
 | |
| FROM registry.cn-hangzhou.aliyuncs.com/ossrs/srs:dev AS build
 | |
| 
 | |
| COPY . /tmp/signaling
 | |
| RUN cd /tmp/signaling && make
 | |
| RUN cp /tmp/signaling/objs/signaling /usr/local/bin/signaling
 | |
| RUN cp -R /tmp/signaling/www /usr/local/
 | |
| 
 | |
| ############################################################
 | |
| # dist
 | |
| ############################################################
 | |
| FROM centos:7 AS dist
 | |
| 
 | |
| # HTTP/1989
 | |
| EXPOSE 1989
 | |
| # SRS binary, config files and srs-console.
 | |
| COPY --from=build /usr/local/bin/signaling /usr/local/bin/
 | |
| COPY --from=build /usr/local/www /usr/local/www
 | |
| # Default workdir and command.
 | |
| WORKDIR /usr/local
 | |
| CMD ["./bin/signaling"]
 |