Skip to content

Commit

Permalink
fix: sqs-exexute (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai authored Sep 14, 2024
2 parents 39d91f4 + c89a44c commit ab1ab67
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
20 changes: 12 additions & 8 deletions docker/Dockerfile.subscriber
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" ]
5 changes: 3 additions & 2 deletions pyproject.toml
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"
Expand All @@ -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"]
Expand Down
2 changes: 0 additions & 2 deletions server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ PyGithub==2.3.0
GitPython
python-multipart
httpx[socks]
load_dotenv
supabase
authlib==0.14.3
boto3>=1.34.84
pytest-cov
PyJWT
pydantic>=2.7.0
unstructured>=0.15.9
python-dotenv
python-jose>=3.3.0
six>=1.16.0
jose>=1.0.0
Expand Down
4 changes: 1 addition & 3 deletions subscriber/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
load_dotenv
supabase
petercat_utils
petercat_utils>=0.1.32

0 comments on commit ab1ab67

Please sign in to comment.