Skip to content

Commit 4f0f812

Browse files
committed
Enables fully statically linked binary
Ensures a fully self-contained AWS Lambda deployment and reduces runtime dependencies
1 parent 41eb588 commit 4f0f812

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ profile.out
66
cmd/convox/pkg
77
provider/aws/lambda/autoscale/handler
88
provider/aws/lambda/autoscale/lambda.zip
9+
provider/aws/lambda/autoscale/bootstrap
910
.vscode/
1011
.DS_Store

provider/aws/lambda/autoscale/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ lambda.zip: handler
88
zip -r lambda.zip bootstrap
99

1010
handler: *.go
11-
GOOS=linux GOARCH=amd64 go build -o bootstrap
11+
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-extldflags=-static" -o bootstrap
1212

1313
clean:
1414
rm -f lambda.zip bootstrap
-13.4 MB
Binary file not shown.

0 commit comments

Comments
 (0)