fix: initialise cache with dummy file
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Giles Bradshaw 2020-08-04 21:35:31 +01:00
parent e7e0811830
commit 0c083739e5
2 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,7 @@ ADD . /apps/
RUN chown -R nobody:nogroup /apps/ RUN chown -R nobody:nogroup /apps/
RUN mkdir -p /apps/squid/var/lib/ 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/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/ RUN chown -R nobody:nogroup /apps/
EXPOSE 3128 EXPOSE 3128

3
docker/squid.cache.conf Normal file
View File

@ -0,0 +1,3 @@
cache_dir aufs /apps/squid/var/cache/squid 10000 16 256
coredump_dir /apps/squid/var/cache