File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- FROM amazonlinux
2- ARG PYTHON_VERSION=37
1+ ARG PYTHON_VERSION=3.8
2+ FROM lambci/lambda:build-python${ PYTHON_VERSION}
33ENV PYTHON_VERSION=${PYTHON_VERSION}
4- RUN yum -y install zip jq python${PYTHON_VERSION}
4+ RUN yum -y install zip jq
55COPY pip_install.sh /pip_install.sh
6- ENTRYPOINT [". /pip_install.sh" ]
6+ ENTRYPOINT ["/pip_install.sh" ]
Original file line number Diff line number Diff line change 11#! /bin/bash
2- DIR=" / libs/python/lib/python$PYTHON_VERSION /site-packages"
2+ DIR=" libs/python/lib/python$PYTHON_VERSION /site-packages"
33pip3 install " $@ " --target " $DIR "
4- zip -r libraries.zip pip/
4+ zip -r / libraries.zip libs
Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ variable bucket {
1111variable python_version {
1212 type = string
1313 description = " Python version to build lambda layer with."
14- default = " python3.7 "
14+ default = " python3.8 "
1515}
You can’t perform that action at this time.
0 commit comments