forked from smashwilson/lets-nginx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 721 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM alpine:3.2
MAINTAINER Ash Wilson <smashwilson@gmail.com>
RUN apk add --update nginx \
python python-dev py-pip \
gcc musl-dev linux-headers \
augeas-dev openssl-dev libffi-dev ca-certificates dialog \
&& rm -rf /var/cache/apk/*
RUN pip install -U letsencrypt
# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log
RUN ln -sf /dev/stderr /var/log/nginx/error.log
# used for webroot reauth
RUN mkdir -p /etc/letsencrypt/webrootauth
ADD entrypoint.sh /entrypoint.sh
EXPOSE 80 443
RUN sed -i "s/server {/server {\n \n error_log syslog:server=loggly;\n access_log syslog:server=loggly;\n/" /etc/nginx/conf.d/default.conf
ENTRYPOINT ["/entrypoint.sh"]