Creating AWS lambda package with sls package

I am trying to execute sls commands from GITLAB CI,

image: alpine
commands -

  • npm install -g serverless
  • npm install
  • sls package

serverless.yml -

  • serverless-python-requirements
    dockerizePip: non-linux
    pythonBin: python

sls package command throws error for which need to do this -
apk add gcc musl-dev python3-dev libffi-dev openssl-dev

zip file is created but when Deployed, lambda is throwing error - ImportError: cannot open shared object file: No such file or directory
If I locally run sls package command and upload zip file to lambda, it works fine

Tried doing this - ln /usr/lib/ /usr/lib/ , did not help.