diff --git a/assets/lambda/code/download_defs/Dockerfile b/assets/lambda/code/download_defs/Dockerfile index e8d99d20..610b6320 100644 --- a/assets/lambda/code/download_defs/Dockerfile +++ b/assets/lambda/code/download_defs/Dockerfile @@ -1,14 +1,12 @@ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -FROM --platform=linux/amd64 public.ecr.aws/lambda/python:3.8 +FROM --platform=linux/amd64 public.ecr.aws/lambda/python:3.11 LABEL name=lambda/python/clamav LABEL version=1.0 ARG CACHE_DATE=1 RUN yum update -y \ - && yum install -y amazon-linux-extras \ - && PYTHON=python2 amazon-linux-extras install epel \ && yum -y install clamav clamd \ && yum clean all \ && pip3 install --no-cache-dir cffi awslambdaric boto3 requests aws-lambda-powertools \ diff --git a/assets/lambda/code/scan/Dockerfile b/assets/lambda/code/scan/Dockerfile index f856c03a..cec6e709 100644 --- a/assets/lambda/code/scan/Dockerfile +++ b/assets/lambda/code/scan/Dockerfile @@ -1,14 +1,12 @@ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -FROM --platform=linux/amd64 public.ecr.aws/lambda/python:3.8 +FROM --platform=linux/amd64 public.ecr.aws/lambda/python:3.11 LABEL name=lambda/python/clamav LABEL version=1.0 ARG CACHE_DATE=1 RUN yum update -y \ - && yum install -y amazon-linux-extras \ - && PYTHON=python2 amazon-linux-extras install epel \ && yum -y install clamav clamd p7zip \ && yum clean all \ && pip3 install --no-cache-dir cffi awslambdaric boto3 requests aws-lambda-powertools \