From 0c083739e5d213c3d7ae5f6c26bcd2092926939b Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Tue, 4 Aug 2020 21:35:31 +0100 Subject: [PATCH] fix: initialise cache with dummy file --- docker/Dockerfile | 2 +- docker/squid.cache.conf | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 docker/squid.cache.conf diff --git a/docker/Dockerfile b/docker/Dockerfile index ed7e2d0..5f041ea 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -16,7 +16,7 @@ ADD . /apps/ RUN chown -R nobody:nogroup /apps/ RUN mkdir -p /apps/squid/var/lib/ RUN /apps/squid/libexec/ssl_crtd -c -s /apps/squid/var/lib/ssl_db -M 4MB -RUN /apps/squid/sbin/squid -z -f /apps/squid.intercept.conf +RUN /apps/squid/sbin/squid -N -f /apps/squid.cache.conf -f RUN chown -R nobody:nogroup /apps/ EXPOSE 3128 diff --git a/docker/squid.cache.conf b/docker/squid.cache.conf new file mode 100644 index 0000000..1396189 --- /dev/null +++ b/docker/squid.cache.conf @@ -0,0 +1,3 @@ +cache_dir aufs /apps/squid/var/cache/squid 10000 16 256 + +coredump_dir /apps/squid/var/cache \ No newline at end of file