cool-dns/Dockerfile

17 lines
256 B
Docker
Raw Permalink Normal View History

2021-01-08 18:13:57 +00:00
FROM golang:alpine AS build
WORKDIR /build
COPY [ "go.mod", "go.sum", "./"]
COPY internal ./internal
COPY cmd ./cmd
2021-01-08 18:13:57 +00:00
RUN go build -o cooldns cmd/cooldns.go
2021-01-08 18:13:57 +00:00
FROM alpine:latest
WORKDIR /app
COPY --from=build /build/cooldns .
2021-01-08 18:13:57 +00:00
ENTRYPOINT ["/app/cooldns"]