mirror of https://github.com/dnomd343/TProxy
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							16 lines
						
					
					
						
							518 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							16 lines
						
					
					
						
							518 B
						
					
					
				
								FROM alpine as asset
							 | 
						|
								COPY ./asset.sh /
							 | 
						|
								RUN apk --update add --no-cache curl wget && \
							 | 
						|
								    sh /asset.sh
							 | 
						|
								
							 | 
						|
								FROM alpine
							 | 
						|
								COPY ["./load.sh", "./tproxy.sh", "/etc/xray/"]
							 | 
						|
								COPY --from=asset /tmp/asset/ /etc/xray/asset/
							 | 
						|
								COPY --from=asset /tmp/xray/xray /usr/bin/
							 | 
						|
								ENV XRAY_LOCATION_ASSET=/etc/xray/asset
							 | 
						|
								RUN apk --update add --no-cache iptables ip6tables && \
							 | 
						|
								    mkdir -p /etc/xray/conf && \
							 | 
						|
								    mkdir -p /etc/xray/expose/log && \
							 | 
						|
								    mkdir -p /etc/xray/expose/segment && \
							 | 
						|
								    mv /etc/xray/tproxy.sh /
							 | 
						|
								CMD ["sh","/tproxy.sh"]
							 | 
						|
								
							 |