mirror of
https://github.com/11notes/docker-bind.git
synced 2025-11-04 13:53:14 +00:00
update to alpine 3.10
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# :: Header
|
||||
FROM alpine:3.9
|
||||
FROM alpine:3.10
|
||||
|
||||
# :: Run
|
||||
RUN mkdir -p /bind/etc \
|
||||
@@ -15,6 +15,9 @@ ADD ./source/zones.conf /bind/etc/zones.conf
|
||||
|
||||
RUN chown -R named:named /bind
|
||||
|
||||
# :: Version
|
||||
RUN echo "CI/CD{{$(named -v 2>&1)}}"
|
||||
|
||||
# :: docker -u 1000:1000 (no root initiative)
|
||||
RUN usermod -u 1000 named \
|
||||
&& groupmod -g 1000 named \
|
||||
|
||||
@@ -8,15 +8,15 @@ Dockerfile to create and run your own named process inside an alpine docker cont
|
||||
|
||||
Purpose: named config directory
|
||||
|
||||
/var/zones
|
||||
/bind/var
|
||||
|
||||
Purpose: zone files directory
|
||||
|
||||
## Run
|
||||
```shell
|
||||
docker run --name nginx \
|
||||
-v volume-etc:/etc/bind \
|
||||
-v volume-zones:/var/zones:ro \
|
||||
-v volume-etc:/bind/etc \
|
||||
-v volume-zones:/bind/var:ro \
|
||||
-d 11notes/bind:latest
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user