From 8d65d47200b6681577cc66a35156f1abfba5bcdc Mon Sep 17 00:00:00 2001 From: Marcus Messer Date: Fri, 17 Jul 2026 19:20:23 +0100 Subject: [PATCH 1/5] Updated Python version --- app/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Dockerfile b/app/Dockerfile index 7832b6e..36b0ce9 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -1,6 +1,6 @@ -# Base image that bundles AWS Lambda Python 3.8 image with some middleware functions +# Base image that bundles AWS Lambda Python 3.9 image with some middleware functions # FROM base-eval-tmp -FROM ghcr.io/lambda-feedback/baseevalutionfunctionlayer:main-3.8 +FROM ghcr.io/lambda-feedback/baseevalutionfunctionlayer:main-3.12 WORKDIR /app From 761e8884eceba43a1446c943fae65d96e0f9c975 Mon Sep 17 00:00:00 2001 From: Marcus Messer Date: Fri, 17 Jul 2026 19:23:01 +0100 Subject: [PATCH 2/5] Updated CI python version --- .github/workflows/production-deploy.yml | 2 +- .github/workflows/staging-deploy.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production-deploy.yml b/.github/workflows/production-deploy.yml index cdcc6c4..a272c93 100644 --- a/.github/workflows/production-deploy.yml +++ b/.github/workflows/production-deploy.yml @@ -59,4 +59,4 @@ jobs: DB_PORT: ${{ secrets.DB_PORT }} DB_NAME: ${{ secrets.DB_NAME }} GCP_DB_CREDS: ${{ secrets.GCP_DB_CREDS }} - GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} \ No newline at end of file + GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} diff --git a/.github/workflows/staging-deploy.yml b/.github/workflows/staging-deploy.yml index b03a9ec..fb44606 100644 --- a/.github/workflows/staging-deploy.yml +++ b/.github/workflows/staging-deploy.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8"] + python-version: ["3.12"] steps: - name: Checkout uses: actions/checkout@v4 From 5ec8ea88f37e055e65ff2eda3d82d076054533b6 Mon Sep 17 00:00:00 2001 From: Marcus Messer Date: Sat, 18 Jul 2026 08:55:32 +0100 Subject: [PATCH 3/5] Added installation of git and findutils to Dockerfile --- app/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Dockerfile b/app/Dockerfile index 36b0ce9..a9ef6a1 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -2,6 +2,9 @@ # FROM base-eval-tmp FROM ghcr.io/lambda-feedback/baseevalutionfunctionlayer:main-3.12 +RUN dnf install -y git findutils && dnf clean all + + WORKDIR /app # Copy and install any packages/modules needed for your evaluation script. From 4bb8489f147b71d7ddce875a913cdf59b3ecca7d Mon Sep 17 00:00:00 2001 From: Marcus Messer Date: Sat, 18 Jul 2026 09:07:00 +0100 Subject: [PATCH 4/5] Updated CMD instruction in Dockerfile to use relative path --- app/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Dockerfile b/app/Dockerfile index a9ef6a1..6eece9a 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -24,4 +24,4 @@ RUN chmod 644 $(find . -type f) RUN chmod 755 $(find . -type d) # The entrypoint for AWS is to invoke the handler function within the app package -CMD [ "/app/app.handler" ] +CMD [ "app.handler" ] From d2cad8b894e43004d0bb64045eaf5d2fe80e9f3a Mon Sep 17 00:00:00 2001 From: Marcus Messer Date: Sat, 18 Jul 2026 09:17:51 +0100 Subject: [PATCH 5/5] Set PYTHONPATH in Dockerfile to /app --- app/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Dockerfile b/app/Dockerfile index 6eece9a..daca51c 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -7,6 +7,8 @@ RUN dnf install -y git findutils && dnf clean all WORKDIR /app +ENV PYTHONPATH=/app + # Copy and install any packages/modules needed for your evaluation script. COPY requirements.txt . RUN pip3 install -r requirements.txt