-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable installation of patch releases in lambda image
also, enables building of multiple images for each release of the Python API, for alternate python versions
- Loading branch information
Showing
2 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
ARG PYTHON_VERSION=3.9 | ||
ARG python_version=3.9 | ||
# lambda python image, defaults to python 3.9 | ||
FROM public.ecr.aws/lambda/python:${PYTHON_VERSION} | ||
FROM public.ecr.aws/lambda/python:${python_version} | ||
|
||
# set metadata | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
|
@@ -11,8 +11,8 @@ 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 | ||
# install arcgis | ||
ARG ARCGIS_PYTHON_VERSION=2.2.0 | ||
RUN pip3 install arcgis==${ARCGIS_PYTHON_VERSION} --target "${LAMBDA_TASK_ROOT}" | ||
ARG arcgis_version="2.2.0" | ||
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) | ||
CMD [ "app.handler" ] | ||
|