A purpose-built Docker container to compile and bundle fastText for use with AWS Lambda.
docker login ...
docker pull
docker run -v "$(pwd):/src/" fasttext-lambda:latest
When executed, the container will generate a zip file containing a new lambda layer.The archive will be stored locally in ./dist/layers
.
This container leverages amazonlinux:2
as its base, allowing fastText can be compiled in a similar environment to AWS Lambda. Without this, fastText will fail to resolve linked libraries and dependencies. As an output, this container produces a pre-packaged lambda layer ready to upload.
At this time only the python3.8
runtime is supported.
To build the container, clone this repository and build the container.
docker build -t fasttext-lambda .
We use SemVer for versioning.