Skip to content

Commit

Permalink
upgrade python to 3.12.3 and upgrade base images
Browse files Browse the repository at this point in the history
  • Loading branch information
keithly committed Apr 28, 2024
1 parent d92a857 commit f663a68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG AL_PROVIDED_VERSION=al2023.2024.02.07.17
ARG AL_PROVIDED_VERSION=al2023.2024.04.24.10
ARG ARCH=x86_64
FROM public.ecr.aws/lambda/provided:${AL_PROVIDED_VERSION}-${ARCH} as base
RUN dnf -y update && \
Expand All @@ -10,7 +10,7 @@ RUN dnf -y update && \
dnf -y install gcc openssl-devel bzip2-devel libffi-devel xz-devel zlib-devel tar xz && \
dnf clean all

ARG PYTHON_VERSION=3.12.2
ARG PYTHON_VERSION=3.12.3

RUN cd "$(mktemp -d)" && \
curl -O https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz && \
Expand Down
4 changes: 2 additions & 2 deletions simple-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# based on this example
# https://github.com/aws/aws-lambda-python-runtime-interface-client/blob/970e9c1d2613e0ce9c388547c76ac30992ad0e96/README.md

FROM public.ecr.aws/docker/library/python:3.12.2-slim-bookworm as build-image
FROM public.ecr.aws/docker/library/python:3.12.3-slim-bookworm as build-image

# Install aws-lambda-cpp build dependencies (for awslambdaric)
RUN apt-get update && \
Expand All @@ -26,7 +26,7 @@ RUN python3 -m pip install -U --no-cache-dir pip setuptools wheel && \
--target /src \
awslambdaric boto3

FROM public.ecr.aws/docker/library/python:3.12.2-slim-bookworm
FROM public.ecr.aws/docker/library/python:3.12.3-slim-bookworm

WORKDIR /src

Expand Down

0 comments on commit f663a68

Please sign in to comment.