20 lines
		
	
	
		
			362 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			362 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM debian:12-slim
 | 
						|
 | 
						|
RUN adduser --disabled-password --gecos "" tor
 | 
						|
 | 
						|
RUN apt update && apt install -y tor curl
 | 
						|
 | 
						|
COPY hidden_service /hidden_service
 | 
						|
COPY torrc /etc/tor/torrc
 | 
						|
COPY entrypoint.sh /
 | 
						|
 | 
						|
RUN chown -R tor /etc/tor
 | 
						|
RUN chown -R tor /hidden_service
 | 
						|
RUN chmod -R go-rwx /etc/tor
 | 
						|
RUN chmod -R go-rwx /hidden_service
 | 
						|
 | 
						|
USER tor
 | 
						|
 | 
						|
ENTRYPOINT ["/entrypoint.sh"]
 | 
						|
 |