chore: add readme for modal builder

This commit is contained in:
BennyKok
2024-01-05 19:27:31 +08:00
parent fd9378b2a4
commit d6707295cc
2 changed files with 25 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
MODAL_TOKEN_ID=
MODAL_TOKEN_SECRET=
DEPLOY_TEST_FLAG=True
+22
View File
@@ -0,0 +1,22 @@
# Modal Builder
This is a standalone docker fast api app that will takes in require snapshot of the machine and build it as a new modal apps and returns back the deployment url.
Environment variable, get it from you [modal accounts](https://modal.com/bennykok/settings/tokens)
```shellscript
MODAL_TOKEN_ID=
MODAL_TOKEN_SECRET=
```
To run locally
```
docker build -t bennykok/comfydeploy-builder:dev . && docker run --env-file .env -p 8080:8080 bennykok/comfydeploy-builder:dev
```
To deploy
```
fly deploy
```