Skip to content

Commit

Permalink
rename config files from .new
Browse files Browse the repository at this point in the history
  • Loading branch information
tmknight committed Jan 4, 2023
1 parent d92a79e commit abbed98
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions privoxy.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN apk --update --upgrade --no-cache --no-progress add \
tzdata \
zlib \
zlib-dev \
util-linux-misc \
&& mkdir -p /etc/privoxy \
&& mkdir -p /var/log/privoxy \
&& cd /tmp/ \
Expand All @@ -41,6 +42,12 @@ RUN apk --update --upgrade --no-cache --no-progress add \
&& make -s install \
&& cd / \
&& chown -R privoxy:privoxy /var/log/privoxy \
## we want just the user-manual
&& mv /usr/share/doc/privoxy/user-manual/ /tmp/ \
&& rm -rf /usr/share/doc/privoxy/* \
&& mv /tmp/user-manual/ /usr/share/doc/privoxy/ \
## rename config files
&& rename -a '.new' '' /etc/privoxy/*.new \
## remove unnecessary packages
&& apk --no-progress del \
alpine-sdk \
Expand All @@ -49,10 +56,6 @@ RUN apk --update --upgrade --no-cache --no-progress add \
pcre-dev \
zlib-dev \
## cleanup
## we want just the user-manual
&& mv /usr/share/doc/privoxy/user-manual/ /tmp/ \
&& rm -rf /usr/share/doc/privoxy/* \
&& mv /tmp/user-manual/ /usr/share/doc/privoxy/ \
## remove temp files
&& rm -rf \
/tmp/* \
Expand Down

0 comments on commit abbed98

Please sign in to comment.