mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
13 lines
391 B
Bash
Executable File
13 lines
391 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#install zip on debian OS, since microsoft/dotnet container doesn't have zip by default
|
|
if [ -f /etc/debian_version ]
|
|
then
|
|
apt -qq update
|
|
apt -qq -y install zip
|
|
fi
|
|
|
|
dotnet restore
|
|
dotnet tool install -g Amazon.Lambda.Tools --framework netcoreapp3.1
|
|
dotnet lambda package --configuration Release --framework netcoreapp3.1 --output-package bin/Release/netcoreapp3.1/hello.zip
|