Move scripts to directory

This commit is contained in:
fredbcode committed 2021-12-21 11:20:43 +01:00
1 parent 7566ffcfaf
commit 9547d18ac7
5 files changed
+10 -11

No files matched your search

+4 -6
View File
@@ -51,7 +51,7 @@ RUN echo "deb-src http://deb.debian.org/debian bullseye main contrib" >> /etc/ap
--with-filedescriptors=48000 \
--enable-delay-pools \
--with-large-files \
--with-pidfile=/tmp/squid.pid \
--with-pidfile=/squid/squid.pid \
--with-default-user=squid \
--enable-removal-policies="lru,heap" \
&& make \
@@ -102,12 +102,10 @@ RUN adduser --no-create-home --uid 1161 --group --system squid \
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates net-tools rsync libexpat1 libltdl7 libxml2 openssl ca-certificates libldap-2.4-2 libecap3 libcap2 libdb5.3 libatomic1 dumb-init procps inotify-tools \
&& apt-get auto-remove -y && apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/* && rm -Rf /tmp/*
COPY run.sh /
COPY autoreload.sh /
COPY sup.sh /
RUN chmod +x /run.sh /autoreload.sh /sup.sh
COPY --chown=1161 squid /squid
RUN chmod +x /squid/run.sh /squid/autoreload.sh /squid/sup.sh
HEALTHCHECK CMD squidclient mgr:info | grep "HTTP/1.1 200 OK" || exit 1
EXPOSE 3128
ENTRYPOINT ["dumb-init"]
USER squid
CMD ["bash", "-c", "/run.sh && squid -N -n $HOSTNAME"]
CMD ["bash", "-c", "/squid/run.sh && squid -N -n $HOSTNAME"]