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