A containerized AWS Lambda function for processing documents using PyMuPDF4LLM, OpenAI, and Google Docs API.
-
Prerequisites
Docker installed and running.
Google Service Account Key: A service-account-key.json file in the project root.
Environment Variables: A .env file containing your OPENAI_API_KEY and other secrets.
-
Build the Image
Build the Docker container with the name superdoc: Bash
docker build -t superdoc .
- Run the Container
Run the container by mounting the emulator, your Google credentials, and your environment variables. Bash
docker run -it --rm
-v
-v ~/.aws:/root/.aws:ro
-p 8000:8000
superdoc