Merge pull request #103 from lancachenet/cache-mode-addition

Update dockerfile to include CACHE_MODE
This commit is contained in:
James Kinsman 2020-02-24 12:34:42 +00:00 committed by GitHub
commit 3505a6056b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,17 +1,19 @@
FROM lancachenet/generic:latest
MAINTAINER LanCache.Net Team <team@lancache.net>
ENV GENERICCACHE_VERSION 2
ENV WEBUSER www-data
ENV CACHE_MEM_SIZE 500m
ENV CACHE_DISK_SIZE 1000000m
ENV CACHE_MAX_AGE 3560d
ENV UPSTREAM_DNS 8.8.8.8 8.8.4.4
ENV BEAT_TIME 1h
ENV LOGFILE_RETENTION 3560
ENV CACHE_DOMAINS_REPO https://github.com/uklans/cache-domains.git
ENV CACHE_DOMAINS_BRANCH master
ENV NGINX_WORKER_PROCESSES auto
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
COPY overlay/ /