2019-05-30 20:30:25 +00:00
|
|
|
FROM lancachenet/generic:latest
|
|
|
|
MAINTAINER LanCache.Net Team <team@lancache.net>
|
2018-11-28 22:35:06 +00:00
|
|
|
|
2020-02-24 12:17:25 +00:00
|
|
|
ENV GENERICCACHE_VERSION=2 \
|
|
|
|
CACHE_MODE=monolithic \
|
|
|
|
WEBUSER=www-data \
|
|
|
|
CACHE_MEM_SIZE=500m \
|
|
|
|
CACHE_DISK_SIZE=1000000m \
|
|
|
|
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
|
2018-11-28 22:35:06 +00:00
|
|
|
|
|
|
|
COPY overlay/ /
|
|
|
|
|
|
|
|
RUN mkdir -m 755 -p /data/cachedomains ;\
|
|
|
|
mkdir -m 755 -p /tmp/nginx ;\
|
|
|
|
apt-get update ;\
|
|
|
|
apt-get install -y jq git ;
|
|
|
|
|
2020-02-28 08:05:56 +00:00
|
|
|
RUN git clone --depth=1 --no-single-branch https://github.com/uklans/cache-domains/ /data/cachedomains
|
2018-11-28 22:35:06 +00:00
|
|
|
|
|
|
|
VOLUME ["/data/logs", "/data/cache", "/data/cachedomains", "/var/www"]
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
WORKDIR /scripts
|