This commit is contained in:
parent
a2b3298dda
commit
97e0a7abbe
25
.drone.yml
Normal file
25
.drone.yml
Normal file
@ -0,0 +1,25 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Docker image build
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
steps:
|
||||
- name: config
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk add --no-cache git
|
||||
- git clone https://git.quacker.org/d/dockerutils
|
||||
- sh dockerutils/alpine-pkg-tag.sh bind
|
||||
- name: build
|
||||
image: thegeeklab/drone-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
platforms:
|
||||
- linux/arm64
|
||||
- linux/amd64
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: quackerd/bind
|
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM alpine:latest
|
||||
COPY ./run.sh /opt/run.sh
|
||||
RUN set -xe \
|
||||
&& apk add --no-cache bind \
|
||||
&& chmod +x /opt/run.sh
|
||||
|
||||
RUN mkdir -p /etc/bind && chown root:bind /etc/bind/ && chmod 755 /etc/bind
|
||||
RUN mkdir -p /var/cache/bind && chown bind:bind /var/cache/bind && chmod 755 /var/cache/bind
|
||||
RUN mkdir -p /var/lib/bind && chown bind:bind /var/lib/bind && chmod 755 /var/lib/bind
|
||||
RUN mkdir -p /var/log/bind && chown bind:bind /var/log/bind && chmod 755 /var/log/bind
|
||||
RUN mkdir -p /run/named && chown bind:bind /run/named && chmod 755 /run/named
|
||||
|
||||
VOLUME ["/etc/bind", "/var/cache/bind", "/var/lib/bind", "/var/log"]
|
||||
CMD ["/opt/run.sh"]
|
||||
EXPOSE ["53/udp", "53/tcp", "953/tcp"]
|
Loading…
Reference in New Issue
Block a user