-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (18 loc) · 1015 Bytes
/
Dockerfile
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
FROM ubuntu:14.04
MAINTAINER Kristof Coomans "kristof@2dotstwice.be"
ENV REFRESHED_AT "2017-02-04 11:13:00"
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update && \
DEBIAN_FRONTEND=noninteractive apt-get -y --fix-missing --no-install-recommends -q install supervisor nginx && \
rm -rf /var/lib/apt/lists/*
ENV CONFIG_REFRESHED_AT "2017-02-04 11:13:00"
ADD ./files/etc/supervisor/supervisord.conf /etc/supervisor/supervisord.conf
ADD ./files/etc/supervisor/conf.d/nginx.conf /etc/supervisor/conf.d/nginx.conf
# set nginx custom log format including the host header
ADD ./files/etc/nginx/nginx.conf /etc/nginx/nginx.conf
# logrotation configuration for nginx including a date filename extension
ADD ./files/etc/logrotate.d/nginx /etc/logrotate.d/nginx
# nginx site configuration with optimized expiry for assets (js, css, images)
ADD ./files/etc/nginx/sites-available/default /etc/nginx/sites-available/default
# nginx web interface
EXPOSE 80
CMD supervisord -n -c /etc/supervisor/supervisord.conf