Skip to content

Commit eeafde3

Browse files
committed
Reverted to python 3.7
1 parent 1ede0e8 commit eeafde3

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
ARG PYTHON_VERSION=3.8
1+
ARG PYTHON_VERSION=3.7
22
FROM lambci/lambda:build-python${PYTHON_VERSION}
3-
ENV PYTHON_VERSION=${PYTHON_VERSION}
3+
ARG PYTHON_VERSION
4+
ENV PYTHON_VERSION ${PYTHON_VERSION}
45
RUN yum -y install zip jq
56
COPY pip_install.sh /pip_install.sh
67
ENTRYPOINT ["/pip_install.sh"]

pip_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
2-
DIR="libs/python/lib/python$PYTHON_VERSION/site-packages"
2+
DIR="python/lib/python$PYTHON_VERSION/site-packages"
33
pip3 install "$@" --target "$DIR"
4-
zip -r /libraries.zip libs
4+
zip -r /libraries.zip python

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ variable bucket {
1111
variable python_version {
1212
type = string
1313
description = "Python version to build lambda layer with."
14-
default = "python3.8"
14+
default = "python3.7"
1515
}

0 commit comments

Comments
 (0)