-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
35 lines (28 loc) · 1.21 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
# edge needed for apache2-http2
FROM alpine:edge
MAINTAINER Candid Dauth <[email protected]>
RUN apk update && apk add \
git \
gcc libffi-dev musl-dev openssl-dev py-virtualenv py-pip python-dev \
apache2 apache2-http2 apache2-proxy apache2-ssl \
bash parallel vim
RUN git clone --depth 1 https://github.com/zenhack/simp_le.git /usr/local/share/simp_le && \
cd /usr/local/share/simp_le && \
./bootstrap.sh && \
./venv.sh && \
ln -s /usr/local/share/simp_le/venv/bin/simp_le /usr/local/bin/
COPY custom.conf /etc/apache2/conf.d/custom.conf
COPY start.sh mkconfig.sh renew-ssl.sh /usr/local/bin/
RUN sed -ri /etc/apache2/httpd.conf \
-e 's@^(\s*)(CustomLog\s)@\1#\2@g' \
-e 's@^(\s*)(LoadModule mpm_prefork_module modules/mod_mpm_prefork.so)@\1#\2@g' \
-e 's@^(\s*)(ErrorLog\s)@\1#\2@g' \
&& \
bash -c 'rm -f /etc/apache2/conf.d/{ssl.conf,userdir.conf,info.conf,proxy.conf}' && \
mkdir -p /etc/apache2/ssl /etc/apache2/htdocs/.well-known/acme-challenge /run/apache2 && \
adduser -D -H -s /bin/bash acme && \
mkdir -p /home/acme/.parallel && \
chown acme:acme /etc/apache2/htdocs/.well-known/acme-challenge /home/acme/.parallel
CMD ["/bin/bash", "/usr/local/bin/start.sh"]
VOLUME ["/etc/apache2/ssl"]
EXPOSE 80 443