forked from lancachenet/generic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
33 lines (27 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM steamcache/ubuntu-nginx:latest
MAINTAINER SteamCache.Net Team <team@steamcache.net>
ENV GENERICCACHE_VERSION=2 \
WEBUSER=www-data \
CACHE_MEM_SIZE=500m \
CACHE_DISK_SIZE=500000m \
CACHE_MAX_AGE=3560d \
UPSTREAM_DNS="8.8.8.8 8.8.4.4" \
BEAT_TIME=1h \
LOGFILE_RETENTION=3560 \
NGINX_WORKER_PROCESSES=16
COPY overlay/ /
RUN rm /etc/nginx/sites-enabled/*; \
rm /etc/nginx/conf.d/gzip.conf /etc/nginx/conf.d/openshift_logging.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_generic.conf /etc/nginx/sites-enabled/10_generic.conf
VOLUME ["/data/logs", "/data/cache", "/var/www"]
EXPOSE 80
WORKDIR /scripts