1
0
mirror of https://github.com/b4tman/docker-squid.git synced 2024-11-21 18:56:54 +00:00

fix timezone setup #133

This commit is contained in:
Dmitry Belyaev 2024-03-26 12:09:03 +03:00
parent fb56ae5164
commit 2bd55e0a98
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -119,7 +119,8 @@ RUN apk add --no-cache \
libstdc++ \ libstdc++ \
heimdal-libs \ heimdal-libs \
libcap \ libcap \
libltdl libltdl \
tzdata
COPY --from=build /etc/squid/ /etc/squid/ COPY --from=build /etc/squid/ /etc/squid/
COPY --from=build /usr/lib/squid/ /usr/lib/squid/ COPY --from=build /usr/lib/squid/ /usr/lib/squid/
@ -138,11 +139,6 @@ RUN install -d -o squid -g squid \
touch /etc/squid/conf.d/placeholder.conf touch /etc/squid/conf.d/placeholder.conf
COPY squid-log.conf /etc/squid/conf.d.tail/ COPY squid-log.conf /etc/squid/conf.d.tail/
RUN set -x && \
apk add --no-cache --virtual .tz alpine-conf tzdata && \
/sbin/setup-timezone -z $TZ && \
apk del .tz
VOLUME ["/var/cache/squid"] VOLUME ["/var/cache/squid"]
EXPOSE 3128/tcp EXPOSE 3128/tcp