We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a955ea7 + 1fa74b0 commit 385bb56Copy full SHA for 385bb56
2 files changed
Dockerfile
@@ -0,0 +1,16 @@
1
+FROM public.ecr.aws/lambda/provided:al2 as build
2
+# Install compiler
3
+RUN yum install -y golang
4
+
5
+ADD . .
6
7
+# Build binary
8
+RUN go build -o bin/fluentd-lambda-extension -v ./extensions
9
+RUN chmod +x bin/fluentd-lambda-extension
10
11
+# Move layerbinary to /opt
12
+RUN mkdir -pv /opt/extensions && mv bin/fluentd-lambda-extension /opt/extensions
13
14
+# Reduce image size
15
+FROM public.ecr.aws/lambda/provided:al2
16
+COPY --from=build /opt/extensions /opt/extensions
extensions/Dockerfile
0 commit comments