Skip to content

Commit 385bb56

Browse files
authored
Merge pull request #5 from culiops/features/add_release_ci
add docker build ci
2 parents a955ea7 + 1fa74b0 commit 385bb56

2 files changed

Lines changed: 16 additions & 20 deletions

File tree

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)