cool-dns/Dockerfile

17 lines
214 B
Docker
Raw Normal View History

2021-01-08 18:13:57 +00:00
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"]