diff --git a/Dockerfile b/Dockerfile index 20bc450c067cf2c179e05bd74d8379cffac24c97..2eb762eca31d251a0023174bfa4fa6ac33a58d58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,14 +7,14 @@ FROM golang:alpine AS builder WORKDIR /usr/src/see-interface # pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change -COPY --link go.mod go.sum ./ +COPY go.mod go.sum ./ RUN go mod download && go mod verify -COPY --link . ./ +COPY . ./ RUN CGO_ENABLED=0 GOOS=linux go build -v -o dist ./cmd/see-interface RUN pwd RUN tree . FROM scratch -COPY --from=builder --link /usr/src/see-interface/dist/see-interface /usr/local/bin/see-interface +COPY --from=builder /usr/src/see-interface/dist/see-interface /usr/local/bin/see-interface ENTRYPOINT ["see-interface"]