added dockerfile

This commit is contained in:
Niklas 2021-01-08 19:13:57 +01:00
parent c0d5ef7e22
commit 859aa34eac

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"]