From 1c6293fda30baf38953ef4f462fa32811450d8f6 Mon Sep 17 00:00:00 2001 From: finn Date: Thu, 8 Aug 2024 04:42:12 -0700 Subject: [PATCH] alpine for tor --- tor/Dockerfile | 5 +++-- tor/entrypoint.sh | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tor/Dockerfile b/tor/Dockerfile index 88f3c0a..0c001b7 100644 --- a/tor/Dockerfile +++ b/tor/Dockerfile @@ -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 diff --git a/tor/entrypoint.sh b/tor/entrypoint.sh index eff4933..4f51791 100755 --- a/tor/entrypoint.sh +++ b/tor/entrypoint.sh @@ -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