-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (30 loc) · 851 Bytes
/
Dockerfile
File metadata and controls
41 lines (30 loc) · 851 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM alpine:3
# install certbot
RUN apk add --upgrade python3 py3-pip certbot \
gcc \
musl-dev \
python3-dev \
libffi-dev \
openssl-dev \
cargo
# Create a virtual environment and activate it
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN pip install certbot-dns-cloudflare
RUN apk add nginx
RUN apk add php83
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./app1.conf /etc/nginx/http.d/app1.conf
COPY ./cloudflare.ini /cloudflare.ini
RUN certbot certonly \
--agree-tos \
--register-unsafely-without-email \
--no-eff-email \
--dns-cloudflare \
--dns-cloudflare-credentials cloudflare.ini \
-d "*.suin.127s.suin.org" # your domain name here
COPY ./index.php /root/index.php
COPY ./main.sh /main.sh
RUN chmod +x /main.sh
RUN apk add bash
CMD ["/main.sh"]