-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
FROM public.ecr.aws/lambda/python:3.12 | ||
|
||
# Copy requirements.txt | ||
COPY requirements.txt ${LAMBDA_TASK_ROOT} | ||
# Set the working directory inside the container to Lambda's task root | ||
WORKDIR ${LAMBDA_TASK_ROOT} | ||
|
||
# Install the specified packages | ||
RUN pip install -r requirements.txt | ||
# Copy requirements.txt first to leverage Docker's layer caching | ||
COPY requirements.txt . | ||
|
||
# Copy function code | ||
COPY . ${LAMBDA_TASK_ROOT} | ||
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile) | ||
CMD [ "handler.lambda_handler" ] | ||
# Install the specified packages into the Lambda task root | ||
RUN pip3 install --target "${LAMBDA_TASK_ROOT}" -r requirements.txt --no-cache-dir | ||
|
||
# Copy the rest of the application code to the Lambda task root | ||
COPY . . | ||
|
||
# Set the CMD to the Lambda handler | ||
CMD [ "handler.lambda_handler" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "petercat_utils" | ||
version = "0.1.31" | ||
version = "0.1.34" | ||
description = "" | ||
authors = ["raoha.rh <[email protected]>"] | ||
readme = "README.md" | ||
|
@@ -27,8 +27,9 @@ langchain_openai = "^0.1.20" | |
langchain_core = "^0.2.28" | ||
langchain = "^0.2.12" | ||
supabase = "2.6.0" | ||
pydantic = "2.7.0" | ||
pydantic = ">=2.7.0,<3" | ||
PyGithub = "2.3.0" | ||
python-dotenv = "1.0.0" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
load_dotenv | ||
supabase | ||
petercat_utils | ||
petercat_utils>=0.1.32 |