forked from hernandito/Apache-LetsEncrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (29 loc) · 1.08 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
FROM linuxserver/baseimage.apache
MAINTAINER smdion <[email protected]>
# copy sources.list
COPY sources.list /etc/apt/
ENV APTLIST="libapache2-mod-php5 wget mc inotify-tools php5-gd php5-sqlite php5-mcrypt php5-tidy php5-mysql libapache2-mod-proxy-html"
# install main packages
RUN apt-get update -q && \
apt-get install $APTLIST -qy && \
# cleanup
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD firstrun.sh /etc/my_init.d/firstrun.sh
RUN chmod +x /etc/my_init.d/firstrun.sh
RUN mkdir -p /etc/letsencrypt
ADD https://dl.eff.org/certbot-auto /usr/bin/certbot-auto
RUN chmod a+x /usr/bin/certbot-auto
ADD config/ /root/
RUN chmod +x /root/userscript.sh
# add some files
ADD services/ /etc/service/
RUN chmod -v +x /etc/service/*/run /etc/service/*/finish /etc/my_init.d/*.sh
# Update apache configuration with this one
RUN a2enmod proxy proxy_http proxy_ajp rewrite deflate substitute headers proxy_balancer proxy_connect proxy_html xml2enc authnz_ldap
# ports and volumes
EXPOSE 80 443
VOLUME /config /etc/letsencrypt
ENV YOUR_EMAIL=
ENV YOUR_EMAIL=
ENV ADVANCED_SCRIPT=