force remove PID file on startup

to fix #104
This commit is contained in:
Dmitry Belyaev 2023-07-07 09:09:42 +03:00
parent e7d7016018
commit e108ff41f6
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
1 changed files with 1 additions and 1 deletions

View File

@ -148,4 +148,4 @@ EXPOSE 3128/tcp
USER squid
CMD ["sh", "-c", "/usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -z && exec /usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -YCd 1"]
CMD ["sh", "-c", "rm -f /var/run/squid/squid.pid ; /usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -z && exec /usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -YCd 1"]