Skip to content

Commit

Permalink
use an up to date golang image as the builder images, since AWS's base
Browse files Browse the repository at this point in the history
image has a go 1.20.x release that is 3 months old

Signed-off-by: Callum Styan <[email protected]>
  • Loading branch information
cstyan committed Apr 3, 2024
1 parent a0616f8 commit c5e4151
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/lambda-promtail/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c5e4151

Please sign in to comment.