diff --git a/Dockerfile b/Dockerfile index fd8aaee..b4acd05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,19 @@ FROM alpine:3.11 +ARG USER=toruser +ARG UID=1000 + RUN apk add --no-cache tor +RUN adduser \ + --disabled-password \ + --gecos "" \ + --uid "$UID" \ + "$USER" + VOLUME /etc/tor/ VOLUME /var/lib/tor/ EXPOSE 9050 9051 29050 29051 -ENTRYPOINT ["tor"] \ No newline at end of file +ENTRYPOINT ["tor"]