Skip to content

EllianCarlos/lambda-docker-serverless-nestjs-prisma

Repository files navigation

lambda-docker-serverless-nestjs-prisma

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!

Installation

Install the dependencies:

yarn install

And also, install the plugin from serverless:

npx sls plugin install -n serverless-offline

Configuration

FAQ

  • Something like: npm ERR! errno EAI_AGAIN can be solved with:
    • Re-install npm proxy:
      npm config rm proxy
      npm config rm https-proxy
      And update the docker sudo systemctl restart docker
    • If nothing works just edit /etc/docker/daemon.json with the content:
      {
        "dns": ["10.0.0.2", "8.8.8.8"]
      }
      And then update the docker sudo systemctl restart docker.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published