added dockerfile
This commit is contained in:
parent
c0d5ef7e22
commit
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"]
|
Loading…
Reference in New Issue
Block a user