-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
51 lines (39 loc) · 1.12 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM alpine:3.3
MAINTAINER Johan Wänglöf <[email protected]>
####
## Nginx
####
#RUN apk add --update nginx
#
## Symlink nginx' default logs to std* so Docker Logs can see them
#RUN ln -sf /dev/stdout /var/log/nginx/access.log
#RUN ln -sf /dev/stderr /var/log/nginx/error.log
###
# Lets Encrypt
###
RUN export CERTBOT_DEPS="py-pip \
build-base \
libffi-dev \
python-dev \
ca-certificates \
openssl-dev \
linux-headers \
dialog \
wget" && \
apk --update add openssl \
augeas-libs \
${CERTBOT_DEPS}
RUN pip install --upgrade --no-cache-dir pip virtualenv
RUN mkdir /letsencrypt
WORKDIR /letsencrypt
# Get the certbot so we can use Lets Encrypt
RUN wget https://dl.eff.org/certbot-auto
RUN chmod a+x certbot-auto
# Clean up
RUN apk del ${CERTBOT_DEPS}
RUN rm -rf /var/cache/apk/*
WORKDIR /
COPY ./run.sh /
RUN chmod a+x /run.sh
#EXPOSE 80 443
CMD ["sh", "/run.sh"]