Closed mrserverless closed 6 years ago
Closing since this is addressed in a more appropriate PR https://github.com/aws/aws-lambda-dotnet/pull/238
@mrserverless, hey, I'm still getting this error when running lambda package on .net6 image. I need a lambda zip package. How can I achieve that?
Not sure if this might help @SangI762, @mrserverless. For future reference, this is basically Linux / macOS complaining about the non-existence of "zip" binaries. Most Linux distros come with unzip utility installed by default, but they don't contain the "zip" utility. Install that, and you should be fine.
Steps to reproduce the issue
docker run -w /app -v $PWD:/app -ti microsoft/dotnet:2.0-sdk /bin/bash
dotnet lambda package --configuration release --framework netcoreapp2.0 --output-package bin/release/netcoreapp2.0/deploy-package.zip
Expected behavior
Successful package:
Actual behavior
Failure to find
zip
:Additional information (e.g. issue happens only occasionally)
Basically to work around this, I need to
apt -y install zip
first ORdotnet-sdk:2.0
and install zipzip
command should be part of this image in order to support thedotnet
commands that are offered.Output of
docker version
Output of
docker info