Compare commits
2 Commits
c0d5ef7e22
...
931c065c8f
| Author | SHA1 | Date | |
|---|---|---|---|
| 931c065c8f | |||
| 859aa34eac |
16
Dockerfile
Normal file
16
Dockerfile
Normal 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
11
docker-compose.yml
Normal 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/
|
||||||
Reference in New Issue
Block a user