-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
30 lines (21 loc) · 783 Bytes
/
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
# (c) Copyright 2019-2020, James Stevens ... see LICENSE for details
# Alternative license arrangements are possible, contact me for more information
FROM alpine
RUN rmdir /tmp
RUN ln -s /dev/shm /tmp
RUN ln -s /dev/shm /ram
RUN apk add nginx
RUN apk add gettext
RUN rmdir /var/lib/nginx/tmp /var/log/nginx
RUN ln -s /dev/shm /var/lib/nginx/tmp
RUN ln -s /dev/shm /var/log/nginx
RUN ln -s /dev/shm /run/nginx
RUN mkdir -p /opt /opt/htdocs
COPY htdocs/index.html /opt/htdocs/index.html
COPY container/inittab /etc/inittab
COPY container/start /opt/start
COPY container/certkey.pem /etc/nginx/
COPY container/pdns-webui.tmpl /etc/nginx/pdns-webui.tmpl
COPY container/htpasswd /etc/nginx/htpasswd
RUN ln -s /ram/pdns-webui.conf /etc/nginx/pdns-webui.conf
CMD [ "/sbin/init" ]