Skip to content

Commit ef4571f

Browse files
authored
Merge pull request #1812 from Esri/JR/lambda-docker
update Lambda Docker Image for v2.3.0, python 3.11
2 parents 543de58 + 8a91392 commit ef4571f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/DockerBuild.LambdaBaseImage.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
version:
88
description: "Version of ArcGIS API for Python to install in the image"
99
type: string
10-
default: "2.2.0"
10+
default: "2.3.0"
1111
python_version:
1212
description: "Python version to base image on"
1313
type: string
14-
default: "3.9"
14+
default: "3.11"
1515
is_latest_release:
1616
description: "Version of ArcGIS API for Python is Latest current release"
1717
type: boolean

docker/LambdaBaseImage.Dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG python_version=3.9
2-
# lambda python image, defaults to python 3.9
1+
ARG python_version=3.11
2+
# lambda python image, defaults to python 3.11
33
FROM public.ecr.aws/lambda/python:${python_version}
44

55
# set metadata
@@ -9,9 +9,10 @@ LABEL org.opencontainers.image.licenses=Apache
99
LABEL org.opencontainers.image.source=https://github.com/esri/arcgis-python-api
1010

1111
# install dependencies, then clean yum cache
12-
RUN yum -y install gcc krb5-devel krb5-server krb5-libs && yum clean all && rm -rf /var/cache/yum
12+
RUN yum -y install gcc gcc-c++ krb5-devel krb5-server krb5-libs && yum clean all && rm -rf /var/cache/yum
1313
# install arcgis
14-
ARG arcgis_version="2.2.0"
14+
ARG arcgis_version="2.3.0"
15+
# adding .* ensures the latest patch version is installed
1516
RUN pip3 install "arcgis==${arcgis_version}.*" --target "${LAMBDA_TASK_ROOT}"
1617
# set entrypoint to app.py handler method
1718
# (note that app.py is missing from this base image)

0 commit comments

Comments
 (0)