Skip to content

Commit 1ede0e8

Browse files
committed
Switched to lambci/lambda image
1 parent 9c165f4 commit 1ede0e8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM amazonlinux
2-
ARG PYTHON_VERSION=37
1+
ARG PYTHON_VERSION=3.8
2+
FROM lambci/lambda:build-python${PYTHON_VERSION}
33
ENV PYTHON_VERSION=${PYTHON_VERSION}
4-
RUN yum -y install zip jq python${PYTHON_VERSION}
4+
RUN yum -y install zip jq
55
COPY pip_install.sh /pip_install.sh
6-
ENTRYPOINT ["./pip_install.sh"]
6+
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="libs/python/lib/python$PYTHON_VERSION/site-packages"
33
pip3 install "$@" --target "$DIR"
4-
zip -r libraries.zip pip/
4+
zip -r /libraries.zip libs

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.7"
14+
default = "python3.8"
1515
}

0 commit comments

Comments
 (0)