Skip to content

Commit d466d49

Browse files
authored
Feature/atol rtol rename (#16)
* Updated Python version * Updated CI python version * Added installation of git and findutils to Dockerfile * Updated CMD instruction in Dockerfile to use relative path * Set PYTHONPATH in Dockerfile to /app
1 parent 2587f55 commit d466d49

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/production-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ jobs:
5959
DB_PORT: ${{ secrets.DB_PORT }}
6060
DB_NAME: ${{ secrets.DB_NAME }}
6161
GCP_DB_CREDS: ${{ secrets.GCP_DB_CREDS }}
62-
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
62+
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}

.github/workflows/staging-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
python-version: ["3.8"]
21+
python-version: ["3.12"]
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@v4

app/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
# Base image that bundles AWS Lambda Python 3.8 image with some middleware functions
1+
# Base image that bundles AWS Lambda Python 3.9 image with some middleware functions
22
# FROM base-eval-tmp
3-
FROM ghcr.io/lambda-feedback/baseevalutionfunctionlayer:main-3.8
3+
FROM ghcr.io/lambda-feedback/baseevalutionfunctionlayer:main-3.12
4+
5+
RUN dnf install -y git findutils && dnf clean all
6+
47

58
WORKDIR /app
69

10+
ENV PYTHONPATH=/app
11+
712
# Copy and install any packages/modules needed for your evaluation script.
813
COPY requirements.txt .
914
RUN pip3 install -r requirements.txt
@@ -21,4 +26,4 @@ RUN chmod 644 $(find . -type f)
2126
RUN chmod 755 $(find . -type d)
2227

2328
# The entrypoint for AWS is to invoke the handler function within the app package
24-
CMD [ "/app/app.handler" ]
29+
CMD [ "app.handler" ]

0 commit comments

Comments
 (0)