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
|
|
|
|
|
|
|
ENV GENERICCACHE_VERSION 2
|
2018-12-19 13:02:02 +00:00
|
|
|
ENV WEBUSER www-data
|
2018-11-28 22:35:06 +00:00
|
|
|
ENV CACHE_MEM_SIZE 500m
|
2018-12-19 17:07:14 +00:00
|
|
|
ENV CACHE_DISK_SIZE 1000000m
|
2018-11-28 22:35:06 +00:00
|
|
|
ENV CACHE_MAX_AGE 3560d
|
|
|
|
ENV UPSTREAM_DNS 8.8.8.8 8.8.4.4
|
|
|
|
ENV BEAT_TIME 1h
|
|
|
|
ENV LOGFILE_RETENTION 3560
|
2019-12-02 11:04:26 +00:00
|
|
|
ENV CACHE_DOMAINS_REPO https://github.com/uklans/cache-domains.git
|
|
|
|
ENV CACHE_DOMAINS_BRANCH master
|
2018-11-28 22:35:06 +00:00
|
|
|
ENV UPSTREAM_DNS 8.8.8.8 8.8.4.4
|
2018-12-01 17:16:49 +00:00
|
|
|
ENV 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-23 14:03:02 +00:00
|
|
|
RUN git clone --depth=1 --no-single-branch https://github.com/uklans/cache-domains/ /data/cache-domains
|
2018-11-28 22:35:06 +00:00
|
|
|
|
|
|
|
VOLUME ["/data/logs", "/data/cache", "/data/cachedomains", "/var/www"]
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
WORKDIR /scripts
|