-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from tommylees112/aws_lambda
[WHA-10] update d2 files
- Loading branch information
Showing
28 changed files
with
729 additions
and
778 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FLASK_APP=INSERT_HERE | ||
COHERE_API_KEY=INSERT_HERE | ||
TWILIO_ACCOUNT_SID=INSERT_HERE | ||
TWILIO_AUTH_TOKEN=INSERT_HERE | ||
TWILIO_PHONE_NUMBER=INSERT_HERE |
Empty file.
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 |
---|---|---|
|
@@ -3,4 +3,7 @@ | |
__pycache__ | ||
.vscode | ||
.ruff_cache | ||
d2/*.png | ||
d2/*.png | ||
.pytest_cache | ||
.gcloud_env.sh | ||
upload_secrets.sh |
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM python:3.9-slim@sha256:980b778550c0d938574f1b556362b27601ea5c620130a572feb63ac1df03eda5 | ||
|
||
ENV PYTHONUNBUFFERED True | ||
|
||
ENV APP_HOME /app | ||
WORKDIR $APP_HOME | ||
COPY . ./ | ||
|
||
# set the port to 1234 | ||
ENV PORT 1234 | ||
|
||
# create the environment and install the dependencies | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# As an example here we're running the web service with one worker on uvicorn. | ||
CMD exec uvicorn src.main:app --host 0.0.0.0 --port ${PORT} --workers 1 |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.