diff --git a/tools/lambda-promtail/Dockerfile b/tools/lambda-promtail/Dockerfile index d57edfaf66d8e..711551897fcdb 100644 --- a/tools/lambda-promtail/Dockerfile +++ b/tools/lambda-promtail/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21.9-alpine AS build-image +FROM golang:1.22.2-alpine AS build-image COPY . /src/lambda-promtail WORKDIR /src/lambda-promtail @@ -10,8 +10,8 @@ RUN apk update && apk upgrade && \ RUN go version RUN go mod download +RUN ls -al RUN go build -o /main -tags lambda.norpc -ldflags="-s -w" lambda-promtail/*.go -# RUN ls -al # copy artifacts to a clean image FROM public.ecr.aws/lambda/provided:al2 COPY --from=build-image /main /main