mirror of
https://github.com/b4tman/docker-squid.git
synced 2024-11-24 12:16:53 +00:00
Append prepend conf.d (#11)
impl #10 * separete conf.d folders conf.d - for prepend conf.d.tail - for append
This commit is contained in:
parent
e513e356c7
commit
e2bc962b39
11
Dockerfile
11
Dockerfile
@ -98,6 +98,9 @@ RUN set -x && \
|
||||
make -j $(grep -cs ^processor /proc/cpuinfo) && \
|
||||
make install
|
||||
|
||||
RUN sed -i '1s;^;include /etc/squid/conf.d/*.conf\n;' /etc/squid/squid.conf
|
||||
RUN echo 'include /etc/squid/conf.d.tail/*.conf' >> /etc/squid/squid.conf
|
||||
|
||||
FROM alpine:3.10.1
|
||||
|
||||
ENV SQUID_CONFIG_FILE /etc/squid/squid.conf
|
||||
@ -126,9 +129,11 @@ RUN install -d -o squid -g squid \
|
||||
/var/run/squid && \
|
||||
chmod +x /usr/lib/squid/*
|
||||
|
||||
RUN echo 'include /etc/squid/conf.d/*.conf' >> "$SQUID_CONFIG_FILE" && \
|
||||
install -d -m 755 -o squid -g squid /etc/squid/conf.d
|
||||
COPY squid-log.conf /etc/squid/conf.d/
|
||||
RUN install -d -m 755 -o squid -g squid \
|
||||
/etc/squid/conf.d \
|
||||
/etc/squid/conf.d.tail
|
||||
RUN touch /etc/squid/conf.d/placeholder.conf
|
||||
COPY squid-log.conf /etc/squid/conf.d.tail/
|
||||
|
||||
RUN set -x && \
|
||||
apk add --no-cache --virtual .tz alpine-conf tzdata && \
|
||||
|
Loading…
Reference in New Issue
Block a user