alpine for tor
This commit is contained in:
		@@ -1,8 +1,8 @@
 | 
			
		||||
FROM debian:12-slim
 | 
			
		||||
FROM alpine
 | 
			
		||||
 | 
			
		||||
RUN adduser --disabled-password --gecos "" tor
 | 
			
		||||
 | 
			
		||||
RUN apt update && apt install -y tor curl
 | 
			
		||||
RUN apk update && apk add tor
 | 
			
		||||
 | 
			
		||||
COPY hidden_service /hidden_service
 | 
			
		||||
COPY torrc /etc/tor/torrc
 | 
			
		||||
@@ -10,6 +10,7 @@ COPY entrypoint.sh /
 | 
			
		||||
 | 
			
		||||
RUN chown -R tor /etc/tor
 | 
			
		||||
RUN chown -R tor /hidden_service
 | 
			
		||||
RUN chown -R tor /entrypoint.sh
 | 
			
		||||
RUN chmod -R go-rwx /etc/tor
 | 
			
		||||
RUN chmod -R go-rwx /hidden_service
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +1,8 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
#!/bin/ash
 | 
			
		||||
 | 
			
		||||
if $USE_TOR ; then
 | 
			
		||||
	echo "@@@@@@@@@@ TOR ENABLED BY ENV"
 | 
			
		||||
	exec tor
 | 
			
		||||
	exec /usr/bin/tor
 | 
			
		||||
else
 | 
			
		||||
	echo "@@@@@@@@@@ TOR DISABLED BY ENV"
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user