Dockerfile 531 B

12345678910111213141516171819202122
  1. FROM alpine
  2. LABEL maintainer="Stille <[email protected]>"
  3. ENV VERSION 1.11.0
  4. RUN set -xe && \
  5. apk add tzdata && \
  6. cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
  7. echo "Asia/Shanghai" > /etc/timezone && \
  8. apk del tzdata
  9. RUN set -xe \
  10. && apk add --no-cache tinyproxy \
  11. && sed -i -e '/^Allow /s/^/#/' \
  12. -e '/^ConnectPort /s/^/#/' \
  13. -e '/^#DisableViaHeader /s/^#//' \
  14. /etc/tinyproxy/tinyproxy.conf
  15. VOLUME /etc/tinyproxy
  16. EXPOSE 8888
  17. CMD ["tinyproxy", "-d"]