Skip to content

Instantly share code, notes, and snippets.

@Rohithzr
Created March 26, 2019 21:29
Show Gist options
  • Save Rohithzr/f66f9cde5d401175246a6ec4efa075d4 to your computer and use it in GitHub Desktop.
Save Rohithzr/f66f9cde5d401175246a6ec4efa075d4 to your computer and use it in GitHub Desktop.
FROM alpine
RUN apk add -U curl privoxy jq && \
mv /etc/privoxy/templates /etc/privoxy-templates && \
rm -rf /var/cache/apk/* /etc/privoxy/* && \
mv /etc/privoxy-templates /etc/privoxy/templates
ADD --chown=privoxy:privoxy config \
/etc/privoxy/
ADD --chown=privoxy:privoxy k8s-only.action \
/etc/privoxy/
ADD --chown=privoxy:privoxy k8s-rewrite-external.filter \
/etc/privoxy/
ADD k8s-api-proxy.sh /
EXPOSE 8118/tcp
ENTRYPOINT ["./k8s-api-proxy.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment