-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I've found the flaw in my design, testing again
- Loading branch information
Showing
1 changed file
with
1 addition
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Clean up any previous builds | ||
rm -rf package | ||
rm -f function.zip | ||
|
||
# Export dependencies and install them into the package directory | ||
poetry export -f requirements.txt --output requirements.txt --without-hashes | ||
pip install --target ./package -r requirements.txt | ||
|
||
# Navigate to the package directory and zip its contents | ||
cd package || exit | ||
zip -r ../function.zip . | ||
cd .. | ||
|
||
# Zip the contents of the src directory directly into the function.zip | ||
cd src || exit | ||
zip -r ../function.zip . # Note the dot here to include the contents, not the directory itself | ||
cd .. | ||
zip -r function.zip src |