mirror of
https://github.com/b4tman/docker-squid.git
synced 2024-11-01 02:16:52 +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 -j $(grep -cs ^processor /proc/cpuinfo) && \
|
||||||
make install
|
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
|
FROM alpine:3.10.1
|
||||||
|
|
||||||
ENV SQUID_CONFIG_FILE /etc/squid/squid.conf
|
ENV SQUID_CONFIG_FILE /etc/squid/squid.conf
|
||||||
@ -126,9 +129,11 @@ RUN install -d -o squid -g squid \
|
|||||||
/var/run/squid && \
|
/var/run/squid && \
|
||||||
chmod +x /usr/lib/squid/*
|
chmod +x /usr/lib/squid/*
|
||||||
|
|
||||||
RUN echo 'include /etc/squid/conf.d/*.conf' >> "$SQUID_CONFIG_FILE" && \
|
RUN install -d -m 755 -o squid -g squid \
|
||||||
install -d -m 755 -o squid -g squid /etc/squid/conf.d
|
/etc/squid/conf.d \
|
||||||
COPY squid-log.conf /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 && \
|
RUN set -x && \
|
||||||
apk add --no-cache --virtual .tz alpine-conf tzdata && \
|
apk add --no-cache --virtual .tz alpine-conf tzdata && \
|
||||||
|
Loading…
Reference in New Issue
Block a user