From a30f60ac07e8402c53fe31bf3153ef94e437d0e4 Mon Sep 17 00:00:00 2001 From: Jeremy Frasier Date: Tue, 3 Sep 2024 09:11:13 -0400 Subject: [PATCH 1/2] Remove deprecated version key from Docker composition file This gets rid of a warning from docker-compose. --- docker-compose.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0f91d02..d40b564 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,4 @@ --- -version: "3.2" - services: build_deployment_package: build: . From 830fd13cacc00239d81718946a48b22e5d46ab09 Mon Sep 17 00:00:00 2001 From: Jeremy Frasier Date: Tue, 3 Sep 2024 09:12:26 -0400 Subject: [PATCH 2/2] Capitalize "AS" in FROM lines This gets rid of a warning from Docker. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index dc501b9..950fec6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ ARG PY_VERSION=3.9 -FROM amazon/aws-lambda-python:$PY_VERSION as install-stage +FROM amazon/aws-lambda-python:$PY_VERSION AS install-stage # Declare it a second time so it's brought into this scope. ARG PY_VERSION=3.9 @@ -25,7 +25,7 @@ COPY src/py$PY_VERSION/ . # underlying pip calls. RUN pipenv sync --system --extra-pip-args="--no-cache-dir --target ${LAMBDA_TASK_ROOT}" -FROM amazon/aws-lambda-python:$PY_VERSION as build-stage +FROM amazon/aws-lambda-python:$PY_VERSION AS build-stage ### # For a list of pre-defined annotation keys and value types see: