From f7d04461ddd1a3c3bbfbfb7b708cb4734895f845 Mon Sep 17 00:00:00 2001 From: Julia Date: Sat, 5 Mar 2022 23:06:04 +0100 Subject: [PATCH] Add tor-alpine Dockerfiles --- tor-alpine/Dockerfile | 9 +++++++++ tor-alpine/build.sh | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 tor-alpine/Dockerfile create mode 100755 tor-alpine/build.sh diff --git a/tor-alpine/Dockerfile b/tor-alpine/Dockerfile new file mode 100644 index 0000000..2233afa --- /dev/null +++ b/tor-alpine/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:latest + +# Install tor +RUN apk add tor + +# Run tor with config file /etc/tor/torrc +USER tor +WORKDIR /var/lib/tor +CMD ["tor", "-f", "/etc/tor/torrc"] \ No newline at end of file diff --git a/tor-alpine/build.sh b/tor-alpine/build.sh new file mode 100755 index 0000000..fd587e4 --- /dev/null +++ b/tor-alpine/build.sh @@ -0,0 +1,2 @@ +docker pull alpine:latest +docker build --no-cache -t tor-alpine . \ No newline at end of file