forked from diegopasten/docker-apache2-letsencrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (17 loc) · 772 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM enoniccloud/apache2:u19.04
LABEL creator="Erik Kaareng-Sunde <https://github.com/drerik>"
LABEL maintainer="Diego Pasten <https://github.com/diegopasten>"
ENV TZ=America/Sao_Paulo
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN rm /etc/apache2/sites-enabled/000-default.conf \
&& rm /etc/apache2/sites-enabled/default-ssl.conf \
&& apt-get update -y \
&& apt-get install software-properties-common -y \
&& add-apt-repository universe -y \
&& add-apt-repository ppa:certbot/certbot -y \
&& apt-get clean -y
RUN apt-get install certbot python-certbot-apache -y
COPY index.html /var/www/html/index.html
COPY launcher.sh /usr/local/bin/launcher.sh
RUN chmod +x /usr/local/bin/launcher.sh
CMD /usr/local/bin/launcher.sh