updated Dockerfile to use new structure
This commit is contained in:
parent
39ca792d74
commit
f497c96ad1
12
Dockerfile
12
Dockerfile
@ -2,15 +2,15 @@ FROM golang:alpine AS build
|
|||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
COPY go.mod .
|
COPY [ "go.mod", "go.sum", "./"]
|
||||||
COPY go.sum .
|
COPY internal ./internal
|
||||||
COPY *.go ./
|
COPY cmd ./cmd
|
||||||
|
|
||||||
RUN go build -o cool-dns .
|
RUN go build -o cooldns cmd/cooldns.go
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=build /build/cool-dns .
|
COPY --from=build /build/cooldns .
|
||||||
|
|
||||||
ENTRYPOINT ["/app/cool-dns"]
|
ENTRYPOINT ["/app/cooldns"]
|
||||||
|
Loading…
Reference in New Issue
Block a user