This commit is contained in:
commit
d43f66ab2e
15
.drone.yml
Normal file
15
.drone.yml
Normal file
@ -0,0 +1,15 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: djeeberjr/coredns
|
||||
username: djeeberjr
|
||||
password:
|
||||
from_secret: DOCKER_HUB_TOKEN
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
FROM golang:1.17 as build
|
||||
|
||||
RUN git clone https://github.com/coredns/coredns.git /coredns
|
||||
|
||||
COPY plugin.cfg /coredns/plugin.cfg
|
||||
|
||||
RUN cd /coredns && make
|
||||
|
||||
FROM debian:stable-slim as cert
|
||||
|
||||
RUN apt-get update && apt-get -uy upgrade
|
||||
RUN apt-get -y install ca-certificates && update-ca-certificates
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=cert /etc/ssl/certs /etc/ssl/certs
|
||||
COPY --from=build /coredns/coredns /coredns
|
||||
|
||||
EXPOSE 53 53/udp
|
||||
ENTRYPOINT ["/coredns"]
|
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
coredns:
|
||||
build: .
|
||||
image: djeeberjr/coredns
|
||||
ports:
|
||||
- "53:53/udp"
|
0
plugin.cfg
Normal file
0
plugin.cfg
Normal file
Loading…
Reference in New Issue
Block a user