ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=24.04 |
ADD file:c2e78eb585ec4e503f14c4ea98f4962c998f5eb075749507953f85387742694b in / |
CMD ["/bin/bash"] |
LABEL maintainer=LanCache.Net Team <team@lancache.net> |
ARG DEBIAN_FRONTEND=noninteractive |
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c apt-get -y update && apt-get -y upgrade && apt-get -y install supervisor curl wget bzip2 locales tzdata --no-install-recommends && locale-gen en_GB.utf8 && update-locale LANG=en_GB.utf8 && apt-get -y clean && rm -rf /var/lib/apt/lists/* # buildkit |
ENV SUPERVISORD_EXIT_ON_FATAL=1 LC_ALL=en_GB.UTF-8 LANG=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 TZ=Europe/London SUPERVISORD_LOGLEVEL=WARN |
COPY overlay/ / # buildkit |
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c chmod -R 755 /init /hooks # buildkit |
ENTRYPOINT ["/bin/bash" "-e" "/init/entrypoint"] |
CMD ["/init/supervisord"] |
MAINTAINER LanCache.Net Team <team@lancache.net> |
ARG DEBIAN_FRONTEND=noninteractive |
COPY overlay/ / # buildkit |
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c apt-get update && apt-get install -y nginx-full inotify-tools --no-install-recommends && apt-get -y clean && rm -rf /var/lib/apt/lists/* # buildkit |
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c chmod 777 /opt/nginx/startnginx.sh && rm /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default && mkdir -p /etc/nginx/sites-enabled/ && mkdir -p /etc/nginx/stream-enabled/ && for SITE in /etc/nginx/sites-available/*; do [ -e "$SITE" ] || continue; ln -s $SITE /etc/nginx/sites-enabled/`basename $SITE`; done && for SITE in /etc/nginx/stream-available/*; do [ -e "$SITE" ] || continue; ln -s $SITE /etc/nginx/stream-enabled/`basename $SITE`; done && mkdir -p /var/www/html && chmod 777 /var/www/html /var/lib/nginx && chmod -R 777 /var/log/nginx && chmod -R 755 /hooks /init && chmod 755 /var/www && chmod -R 666 /etc/nginx/sites-* /etc/nginx/conf.d/* /etc/nginx/stream.d/* /etc/nginx/stream-* # buildkit |
EXPOSE map[80/tcp:{}] |
LABEL version=3 |
LABEL description=Single caching container for caching game content at LAN parties. |
LABEL maintainer=LanCache.Net Team <team@lancache.net> |
RUN /bin/sh -c apt-get update ; apt-get install -y jq git ; # buildkit |
ENV GENERICCACHE_VERSION=2 CACHE_MODE=monolithic WEBUSER=www-data CACHE_INDEX_SIZE=500m CACHE_DISK_SIZE=1000g MIN_FREE_DISK=10g CACHE_MAX_AGE=3560d CACHE_SLICE_SIZE=1m UPSTREAM_DNS=8.8.8.8 8.8.4.4 BEAT_TIME=1h LOGFILE_RETENTION=3560 CACHE_DOMAINS_REPO=https://github.com/uklans/cache-domains.git CACHE_DOMAINS_BRANCH=master NGINX_WORKER_PROCESSES=auto NGINX_LOG_FORMAT=cachelog |
COPY overlay/ / # buildkit |
RUN /bin/sh -c rm /etc/nginx/sites-enabled/* /etc/nginx/stream-enabled/* ; rm /etc/nginx/conf.d/gzip.conf ; chmod 754 /var/log/tallylog ; id -u ${WEBUSER} &> /dev/null || adduser --system --home /var/www/ --no-create-home --shell /bin/false --group --disabled-login ${WEBUSER} ; chmod 755 /scripts/* ; mkdir -m 755 -p /data/cache ; mkdir -m 755 -p /data/info ; mkdir -m 755 -p /data/logs ; mkdir -m 755 -p /tmp/nginx/ ; chown -R ${WEBUSER}:${WEBUSER} /data/ ; mkdir -p /etc/nginx/sites-enabled ; ln -s /etc/nginx/sites-available/10_cache.conf /etc/nginx/sites-enabled/10_generic.conf; ln -s /etc/nginx/sites-available/20_upstream.conf /etc/nginx/sites-enabled/20_upstream.conf; ln -s /etc/nginx/sites-available/30_metrics.conf /etc/nginx/sites-enabled/30_metrics.conf; ln -s /etc/nginx/stream-available/10_sni.conf /etc/nginx/stream-enabled/10_sni.conf; mkdir -m 755 -p /data/cachedomains ; mkdir -m 755 -p /tmp/nginx # buildkit |
RUN /bin/sh -c git clone --depth=1 --no-single-branch https://github.com/uklans/cache-domains/ /data/cachedomains # buildkit |
VOLUME [/data/logs /data/cache /data/cachedomains /var/www] |
EXPOSE map[443/tcp:{} 80/tcp:{} 8080/tcp:{}] |
WORKDIR /scripts |