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.
1 parent 274635b commit 1fa74b0Copy full SHA for 1fa74b0
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