From 38fe099e8d849de45576486e98a01ce49b9b598b Mon Sep 17 00:00:00 2001 From: Keith Rozario Date: Tue, 26 Dec 2023 20:07:18 +0800 Subject: [PATCH] added build images --- .github/workflows/container_builds.yml | 6 ++++++ .../container_images/build_images/p312_arm64/Dockerfile | 9 +++++++++ .../container_images/build_images/p312_x86/Dockerfile | 9 +++++++++ 3 files changed, 24 insertions(+) create mode 100644 pipeline/container_images/build_images/p312_arm64/Dockerfile create mode 100644 pipeline/container_images/build_images/p312_x86/Dockerfile diff --git a/.github/workflows/container_builds.yml b/.github/workflows/container_builds.yml index 9313ab1f..5e161894 100644 --- a/.github/workflows/container_builds.yml +++ b/.github/workflows/container_builds.yml @@ -32,6 +32,12 @@ jobs: - python_version: p311 arch: arm64 build_platform: linux/arm64 + - python_version: p312 + arch: x86 + build_platform: linux/amd64 + - python_version: p312 + arch: arm64 + build_platform: linux/arm64 permissions: diff --git a/pipeline/container_images/build_images/p312_arm64/Dockerfile b/pipeline/container_images/build_images/p312_arm64/Dockerfile new file mode 100644 index 00000000..d6960fe2 --- /dev/null +++ b/pipeline/container_images/build_images/p312_arm64/Dockerfile @@ -0,0 +1,9 @@ +FROM public.ecr.aws/lambda/python:3.12-arm64 + +COPY build.py ./ +RUN pip install --upgrade pip +RUN pip install boto3 +RUN pip install aws-lambda-powertools +RUN yum install -y python-devel + +CMD ["build.main"] \ No newline at end of file diff --git a/pipeline/container_images/build_images/p312_x86/Dockerfile b/pipeline/container_images/build_images/p312_x86/Dockerfile new file mode 100644 index 00000000..a79d8acb --- /dev/null +++ b/pipeline/container_images/build_images/p312_x86/Dockerfile @@ -0,0 +1,9 @@ +FROM public.ecr.aws/lambda/python:3.12 + +COPY build.py ./ +RUN pip install --upgrade pip +RUN pip install boto3 +RUN pip install aws-lambda-powertools +RUN yum install -y python-devel + +CMD ["build.main"] \ No newline at end of file