Boilerplate project for uploading a docker image of a nestjs project with the prisma ORM via serverless to be used in a aws lambda.
This is nixos friendly! Check: https://github.com/pimeys/nix-prisma-example to instructions on how to use with nix!
Install the dependencies:
yarn install
And also, install the plugin from serverless:
npx sls plugin install -n serverless-offline
- Something like:
npm ERR! errno EAI_AGAIN
can be solved with:- Re-install npm proxy:
And update the docker
npm config rm proxy npm config rm https-proxy
sudo systemctl restart docker
- If nothing works just edit
/etc/docker/daemon.json
with the content:And then update the docker{ "dns": ["10.0.0.2", "8.8.8.8"] }
sudo systemctl restart docker
.
- Re-install npm proxy: