2021-06-08 20:44:32 +08:00
|
|
|
FROM alpine
|
2022-02-01 22:01:09 +08:00
|
|
|
LABEL maintainer="Stille <stille@ioiox.com>"
|
2021-06-08 20:44:32 +08:00
|
|
|
|
2022-04-08 12:02:19 +08:00
|
|
|
ENV VERSION 1.11.0
|
2021-06-08 20:44:32 +08:00
|
|
|
|
|
|
|
RUN set -xe && \
|
|
|
|
apk add tzdata && \
|
|
|
|
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
|
|
|
echo "Asia/Shanghai" > /etc/timezone && \
|
|
|
|
apk del tzdata
|
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apk add --no-cache tinyproxy \
|
|
|
|
&& sed -i -e '/^Allow /s/^/#/' \
|
|
|
|
-e '/^ConnectPort /s/^/#/' \
|
|
|
|
-e '/^#DisableViaHeader /s/^#//' \
|
|
|
|
/etc/tinyproxy/tinyproxy.conf
|
|
|
|
|
|
|
|
VOLUME /etc/tinyproxy
|
|
|
|
EXPOSE 8888
|
|
|
|
|
|
|
|
CMD ["tinyproxy", "-d"]
|