Skip to content

Commit

Permalink
Merge branch 'python-3.12-layers-support' into feat/python-312
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonLuttenberger committed Dec 18, 2023
2 parents 8ae58e8 + 305f6e2 commit ecfcc1c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions building/lambda/Dockerfile.py312
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
ARG base_image
ARG python_version=base

FROM ${base_image} AS base

RUN dnf install -y \
boost-devel \
jemalloc-devel \
libxml2-devel \
libxslt-devel \
bison \
make \
gcc \
gcc-c++ \
flex \
autoconf \
zip \
git \
ninja-build

WORKDIR /root

FROM ${python_version}
COPY pyproject.toml poetry.lock ./

RUN pip3 install --upgrade pip wheel
RUN pip3 install --upgrade urllib3==1.26.16 # temporary to avoid https://github.com/urllib3/urllib3/issues/2168 (TODO remove when the AL2 image updates to support OpenSSL 1.1.1+)
RUN pip3 install --upgrade six cython cmake hypothesis poetry
RUN poetry config virtualenvs.create false --local && poetry install --no-root --no-dev

RUN rm -f pyproject.toml poetry.lock

ENTRYPOINT ["/bin/sh"]
1 change: 1 addition & 0 deletions building/lambda/build-docker-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ docker build \
--pull \
--tag awswrangler-build-py312 \
--build-arg base_image=public.ecr.aws/lambda/python:3.12 \
--file Dockerfile.py312 \
.

rm -rf pyproject.toml poetry.lock

0 comments on commit ecfcc1c

Please sign in to comment.