Skip to content

Commit

Permalink
Merge pull request #1812 from Esri/JR/lambda-docker
Browse files Browse the repository at this point in the history
update Lambda Docker Image for v2.3.0, python 3.11
  • Loading branch information
jtroe authored Apr 24, 2024
2 parents 543de58 + 8a91392 commit ef4571f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/DockerBuild.LambdaBaseImage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
version:
description: "Version of ArcGIS API for Python to install in the image"
type: string
default: "2.2.0"
default: "2.3.0"
python_version:
description: "Python version to base image on"
type: string
default: "3.9"
default: "3.11"
is_latest_release:
description: "Version of ArcGIS API for Python is Latest current release"
type: boolean
Expand Down
9 changes: 5 additions & 4 deletions docker/LambdaBaseImage.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG python_version=3.9
# lambda python image, defaults to python 3.9
ARG python_version=3.11
# lambda python image, defaults to python 3.11
FROM public.ecr.aws/lambda/python:${python_version}

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

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

0 comments on commit ef4571f

Please sign in to comment.