diff --git a/Dockerfile b/Dockerfile index d1e9c22..d1ec36a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ ## Buidler -FROM golang:1.21.4-alpine3.18 AS builder +FROM golang:1.22.3-alpine3.18 AS builder ARG VERSION ARG REVISION @@ -7,7 +7,7 @@ ARG TIMESTAMP WORKDIR /app -COPY ./ ./ +COPY . . RUN go mod download && go build -ldflags "-X github.com/ucpr/mongo-streamer/pkg/stamp.BuildVersion=${VERSION} -X github.com/ucpr/mongo-streamer/pkg/stamp.BuildRevision=${REVISION} -X github.com/ucpr/mongo-streamer/pkg/stamp.BuildTimestamp=${TIMESTAMP}" -o ./build/mongo-streamer ./cmd