1 - Build the Docker image with the docker build command. The following example names the image aws-lambda-scrapper
and gives it the test
tag.
docker build --platform linux/amd64 -t aws-lambda-scrapper:test .
2 - Start the Docker image with the docker run command. In this example, aws-lambda-scrapper
is the image name and test
is the tag.
docker run -p 9000:8080 aws-lambda-scrapper:test
3 - This command invokes the function with an empty event and returns a response.
curl "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"payload":"aws-lambda-scrapper"}'
- ⚙️ FEATURE
- 📝 PEP8
- 📌 ISSUE
- 🪲 BUG
- 📘 DOCS
- 📦 BUILD
- ❤️️ TEST
- ⬆️ CI/CD
⚠️ SECURITY
This project is licensed under the terms of the MIT license.