diff --git a/tools/lambda-promtail/Dockerfile b/tools/lambda-promtail/Dockerfile index 2f013e045a259..a42aaf826b28c 100644 --- a/tools/lambda-promtail/Dockerfile +++ b/tools/lambda-promtail/Dockerfile @@ -1,5 +1,7 @@ -FROM public.ecr.aws/lambda/provided:al2 as build-image -RUN yum install -y golang +FROM golang:1.22.2-alpine AS build-image +# RUN yum install -y golang +RUN apk update && apk add git +RUN go version RUN go env -w GOPROXY=direct ADD . . RUN go build -o /main -tags lambda.norpc -ldflags="-s -w" lambda-promtail/*.go