update to alpine 3.10

This commit is contained in:
11notes
2019-07-30 09:13:25 +02:00
parent 4c70fe45f3
commit 8b41db5dd8
2 changed files with 7 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
# :: Header # :: Header
FROM alpine:3.9 FROM alpine:3.10
# :: Run # :: Run
RUN mkdir -p /bind/etc \ RUN mkdir -p /bind/etc \
@@ -15,6 +15,9 @@ ADD ./source/zones.conf /bind/etc/zones.conf
RUN chown -R named:named /bind RUN chown -R named:named /bind
# :: Version
RUN echo "CI/CD{{$(named -v 2>&1)}}"
# :: docker -u 1000:1000 (no root initiative) # :: docker -u 1000:1000 (no root initiative)
RUN usermod -u 1000 named \ RUN usermod -u 1000 named \
&& groupmod -g 1000 named \ && groupmod -g 1000 named \

View File

@@ -8,15 +8,15 @@ Dockerfile to create and run your own named process inside an alpine docker cont
Purpose: named config directory Purpose: named config directory
/var/zones /bind/var
Purpose: zone files directory Purpose: zone files directory
## Run ## Run
```shell ```shell
docker run --name nginx \ docker run --name nginx \
-v volume-etc:/etc/bind \ -v volume-etc:/bind/etc \
-v volume-zones:/var/zones:ro \ -v volume-zones:/bind/var:ro \
-d 11notes/bind:latest -d 11notes/bind:latest
``` ```