Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ MAINTAINER David Personette <dperson@gmail.com>

# Install tor and privoxy
RUN apk --no-cache --no-progress upgrade && \
apk --no-cache --no-progress add bash curl privoxy shadow tini tor tzdata&&\
apk --no-cache --no-progress add bash curl privoxy shadow tini tor tzdata && \
file='/etc/privoxy/config' && \
touch $file && \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command just creates an empty file.

The following sed commands are doing nothing after that. So after this fix privoxy will not function as intended by the maintainer.

sed -i 's|^\(accept-intercepted-requests\) .*|\1 1|' $file && \
sed -i '/^listen/s|127\.0\.0\.1||' $file && \
sed -i '/^listen.*::1/s|^|#|' $file && \
Expand Down Expand Up @@ -63,4 +64,4 @@ HEALTHCHECK --interval=60s --timeout=15s --start-period=20s \

VOLUME ["/etc/tor", "/var/lib/tor"]

ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/torproxy.sh"]
ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/torproxy.sh"]
5 changes: 3 additions & 2 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ MAINTAINER David Personette <dperson@gmail.com>

# Install tor and privoxy
RUN apk --no-cache --no-progress upgrade && \
apk --no-cache --no-progress add bash curl privoxy shadow tini tor tzdata&&\
apk --no-cache --no-progress add bash curl privoxy shadow tini tor tzdata && \
file='/etc/privoxy/config' && \
touch $file && \
sed -i 's|^\(accept-intercepted-requests\) .*|\1 1|' $file && \
sed -i '/^listen/s|127\.0\.0\.1||' $file && \
sed -i '/^listen.*::1/s|^|#|' $file && \
Expand Down Expand Up @@ -64,4 +65,4 @@ HEALTHCHECK --interval=60s --timeout=15s --start-period=20s \

VOLUME ["/etc/tor", "/var/lib/tor"]

ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/torproxy.sh"]
ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/torproxy.sh"]
5 changes: 3 additions & 2 deletions Dockerfile.armhf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ MAINTAINER David Personette <dperson@gmail.com>

# Install tor and privoxy
RUN apk --no-cache --no-progress upgrade && \
apk --no-cache --no-progress add bash curl privoxy shadow tini tor tzdata&&\
apk --no-cache --no-progress add bash curl privoxy shadow tini tor tzdata && \
file='/etc/privoxy/config' && \
touch $file && \
sed -i 's|^\(accept-intercepted-requests\) .*|\1 1|' $file && \
sed -i '/^listen/s|127\.0\.0\.1||' $file && \
sed -i '/^listen.*::1/s|^|#|' $file && \
Expand Down Expand Up @@ -64,4 +65,4 @@ HEALTHCHECK --interval=60s --timeout=15s --start-period=20s \

VOLUME ["/etc/tor", "/var/lib/tor"]

ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/torproxy.sh"]
ENTRYPOINT ["/sbin/tini", "--", "/usr/bin/torproxy.sh"]