17 lines
214 B
Docker
17 lines
214 B
Docker
|
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"]
|