명령어
cd path/to/go-project
# Go 바이너리를 Amazon Linux 2023 및 ARM64용으로 빌드
GOOS=linux GOARCH=arm64 go build -o bootstrap main.go
# 실행 권한을 추가
chmod +x bootstrap
# 실행 파일을 압축
zip function.zip bootstrap
GOOS=linux GOARCH=amd64 go build -o main .
cd path/to/go-project
# Go 바이너리를 Amazon Linux 2023 및 ARM64용으로 빌드
GOOS=linux GOARCH=arm64 go build -o bootstrap main.go
# 실행 권한을 추가
chmod +x bootstrap
# 실행 파일을 압축
zip function.zip bootstrap
GOOS=linux GOARCH=amd64 go build -o main .
No Comments