Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
I found a bug in my linux compilation, When i compile the code with main.go in the same directory, i get an error of compiling. So i want to help all who wants to aumatizate and only get the binary code.
  • Loading branch information
luizarnoldch authored Sep 22, 2023
1 parent 771b391 commit 89d5c39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ Preparing a binary to deploy to AWS Lambda requires that it is compiled for Linu
# Remember to build your handler executable for Linux!
# When using the `provided.al2` runtime, the handler executable should be named `bootstrap`
GOOS=linux GOARCH=amd64 go build -o bootstrap main.go

# Omit main.go when the previous command doesn't work and you want to get only the binari code
GOOS=linux GOARCH=amd64 go build -o bootstrap

zip lambda-handler.zip bootstrap
```

Expand Down

0 comments on commit 89d5c39

Please sign in to comment.