Skip to content

Commit

Permalink
fix(openchallenges): specify older version of python to match pyproje…
Browse files Browse the repository at this point in the history
…ct (#2983)
  • Loading branch information
vpchung authored Feb 3, 2025
1 parent 59c7544 commit a425209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/openchallenges/data-lambda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ WORKDIR /app
COPY pyproject.toml poetry.lock ./
RUN poetry export --without-hashes --format=requirements.txt > requirements.txt

FROM public.ecr.aws/lambda/python:3.13
FROM public.ecr.aws/lambda/python:3.11

COPY --from=builder /app/requirements.txt ${LAMBDA_TASK_ROOT}/
COPY openchallenges_data_lambda/app.py ${LAMBDA_TASK_ROOT}/

RUN python3.13 -m pip install --no-cache-dir -r requirements.txt -t .
RUN python3.11 -m pip install --no-cache-dir -r requirements.txt -t .

# Command can be overwritten by providing a different command in the template directly.
CMD ["app.lambda_handler"]

0 comments on commit a425209

Please sign in to comment.