Skip to content

Commit

Permalink
fix the makefile
Browse files Browse the repository at this point in the history
On other projects where we are using `BuildMethod: makefile`
we are just making a dependencies layer, so its ok for the
Makefile to just install packages.

On this project there is no dependency layer so if we
switch the `BuildMethod` to `makefile` the makefile is
also responsible for copying the application code into
the zip artifact.
  • Loading branch information
chris48s committed Dec 18, 2024
1 parent 87030f8 commit 59cfa43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions postcode_lookup/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
build-ECPostcodeLookupFunction:
cp --recursive . "$(ARTIFACTS_DIR)/"
pip install --break-system-packages setuptools
pip install --upgrade -r requirements.txt --target "$(ARTIFACTS_DIR)/python/"
pip install --upgrade -r requirements.txt --target "$(ARTIFACTS_DIR)/"

build-BasicAuthFunction:
cp --recursive . "$(ARTIFACTS_DIR)/"
pip install --break-system-packages setuptools
pip install --upgrade -r requirements.txt --target "$(ARTIFACTS_DIR)/python/"
pip install --upgrade -r requirements.txt --target "$(ARTIFACTS_DIR)/"

0 comments on commit 59cfa43

Please sign in to comment.