mirror of
https://github.com/casjaysdevdocker/squidguard
synced 2025-09-18 03:57:46 -04:00
🦈🏠🐜❗ Initial Commit ❗🐜🦈🏠
This commit is contained in:
59
Dockerfile
Normal file
59
Dockerfile
Normal file
@@ -0,0 +1,59 @@
|
||||
FROM casjaysdev/debian:latest AS build
|
||||
|
||||
ARG BUILD_DATE="$(date +'%Y-%m-%d %H:%M')"
|
||||
|
||||
LABEL \
|
||||
org.label-schema.name="Full proxy server" \
|
||||
org.label-schema.description="" \
|
||||
org.label-schema.url="https://github.com/casjaysdev/squid" \
|
||||
org.label-schema.vcs-url="https://github.com/casjaysdev/squid" \
|
||||
org.label-schema.build-date=$BUILD_DATE \
|
||||
org.label-schema.version=$BUILD_DATE \
|
||||
org.label-schema.vcs-ref=$BUILD_DATE \
|
||||
org.label-schema.license="MIT" \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.schema-version="latest" \
|
||||
org.label-schema.vendor="CasjaysDev" \
|
||||
maintainer="CasjaysDev <docker-admin@casjaysdev.com>"
|
||||
|
||||
ENV \
|
||||
HOSTNAME=proxy \
|
||||
SQUID_HOME_DIR=/var/lib/squid \
|
||||
SQUID_CACHE_DIR=/data/cache/squid \
|
||||
SQUID_LOG_DIR=/data/log/squid \
|
||||
SQUID_USER=squid
|
||||
|
||||
RUN apt-get update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -yy \
|
||||
postfix \
|
||||
squid \
|
||||
squidguard \
|
||||
e2guardian \
|
||||
c-icap \
|
||||
apache2 \
|
||||
apache2-bin \
|
||||
libapache2-mod-fcgid \
|
||||
libapache2-mod-geoip \
|
||||
libapache2-mod-proxy-uwsgi \
|
||||
libapache2-mod-fcgid \
|
||||
libapache2-mod-wsgi \
|
||||
&& apt-get remove -yy --purge exim* \
|
||||
&& rm -rf /var/lib/apt/lists/* /etc/apache2/*conf* \
|
||||
&& mkdir -p /config /data \
|
||||
&& useradd -d "$SQUID_HOME_DIR" -r -U -m "$SQUID_USER"
|
||||
|
||||
ADD ./config/. /etc/
|
||||
ADD ./bin/. /usr/local/bin/
|
||||
|
||||
ADD ./data/. /usr/local/share/squidFiles/data/
|
||||
ADD ./config/. /usr/local/share/squidFiles/config/
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=build /. /
|
||||
|
||||
EXPOSE 3127 3128 80
|
||||
VOLUME ["/config", "/data"]
|
||||
|
||||
HEALTHCHECK CMD ["/usr/local/bin/entrypoint-squid.sh","healthcheck"]
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint-squid.sh"]
|
Reference in New Issue
Block a user