-
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathDockerfile.alpine
More file actions
43 lines (34 loc) · 621 Bytes
/
Dockerfile.alpine
File metadata and controls
43 lines (34 loc) · 621 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
42
43
FROM alpine
LABEL org.opencontainers.image.authors="cytopia@everythingcli.org"
ENV \
USER=named \
GROUP=named
###
### Install
###
RUN set -x \
&& apk add --no-cache \
bash \
bind \
bind-tools \
# Log directory
&& mkdir /var/log/named \
&& chown ${USER}:${GROUP} /var/log/named \
&& chmod 0755 /var/log/named \
# Cache directory
&& mkdir /var/cache/bind \
&& chown root:${GROUP} /var/cache/bind \
&& chmod 0775 /var/cache/bind
###
### Bootstrap Scipts
###
COPY ./data/docker-entrypoint.sh /
###
### Ports
###
EXPOSE 53
EXPOSE 53/udp
####
#### Entrypoint
####
ENTRYPOINT ["/docker-entrypoint.sh"]