Skip to content

Commit 75a164a

Browse files
committed
Add comments to keep Python versions synchronized
Add a comment to `build/Pipfile` and another to the Dockerfile that each mention keeping the Python versions specified in sync.
1 parent 36f232c commit 75a164a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# The runtime tag must match the version of Python specified in the Pipfile.
12
FROM amazon/aws-lambda-python:3.9 AS install-stage
23

34
# Install the Python packages necessary to install the Lambda dependencies.
@@ -20,6 +21,7 @@ COPY build/Pipfile build/Pipfile.lock ./
2021
# underlying pip calls.
2122
RUN pipenv sync --system --extra-pip-args="--no-cache-dir --target ${LAMBDA_TASK_ROOT}"
2223

24+
# The runtime tag must match the version of Python specified in the Pipfile.
2325
FROM amazon/aws-lambda-python:3.9 AS build-stage
2426

2527
###

build/Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ verify_ssl = true
44
name = "pypi"
55

66
[requires]
7+
# This must match the version of the Python runtime specified in the Dockerfile.
78
python_version = "3.9"
89

910
[packages]

0 commit comments

Comments
 (0)