Compare commits

...

2 Commits

Author SHA1 Message Date
931c065c8f added docker compose 2021-01-08 19:14:08 +01:00
859aa34eac added dockerfile 2021-01-08 19:13:57 +01:00
2 changed files with 27 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM golang:alpine AS build
WORKDIR /build
COPY go.mod .
COPY go.sum .
COPY *.go ./
RUN go build -o cool-dns .
FROM alpine:latest
WORKDIR /app
COPY --from=build /build/cool-dns .
ENTRYPOINT ["/app/cool-dns"]

11
docker-compose.yml Normal file
View File

@@ -0,0 +1,11 @@
version: "3"
services:
cool-dns:
build: .
ports:
- "53:53"
- "53:53/udp"
- "853:853"
- "80:80"
volumes:
- ./docker:/etc/cool-dns/