seek-oss / serverless-haskell

Deploying Haskell applications to AWS Lambda with Serverless
MIT License
215 stars 22 forks source link

Avoid Docker / NodeJS runtime wrapper? #155

Closed danwdart closed 3 years ago

danwdart commented 3 years ago

As specified in https://www.haskelltutorials.com/haskell-aws-lambda/avoid-serverless-haskell.html, AWS supports anything - doesn't necessarily have to have Node in the middle. Maybe this library can jump around the Node & the Docker stuff.

koterpillar commented 3 years ago

The wrapper isn't used anymore since 0.11.0.

Docker is, however, still used to build the binary for the architecture of AWS Lambda (Linux, x64, right glibc) no matter what your machine is.

danwdart commented 3 years ago

Yeah, fpco/stack-build:lts-13.30 - gotcha - was just wondering if there was a smaller Docker image we could put the libc from into the zip and use the bootstrap on.. if I've already built the binaries on my local machine.

koterpillar commented 3 years ago

Libc isn't going into the zip, just your other dependencies. It just can't be newer than on AWS. Actually I'm curious to see how Rust, etc. are solving this.

danwdart commented 3 years ago

Hmm, yes. I noticed that it's just old on AWS's side but wonder if all environments are as old.