mirror of
https://github.com/The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge.git
synced 2026-08-29 08:34:31 +08:00
docker setup
This commit is contained in:
@@ -122,6 +122,19 @@ This is a tutorial project of [Pocket Flow](https://github.com/The-Pocket/Pocket
|
|||||||
|
|
||||||
The application will crawl the repository, analyze the codebase structure, generate tutorial content in the specified language, and save the output in the specified directory (default: ./output).
|
The application will crawl the repository, analyze the codebase structure, generate tutorial content in the specified language, and save the output in the specified directory (default: ./output).
|
||||||
|
|
||||||
|
## 🐳 Running with Docker
|
||||||
|
|
||||||
|
To run this project in a Docker container:
|
||||||
|
|
||||||
|
### 1. Build the Docker image
|
||||||
|
```bash
|
||||||
|
docker build -t pocketflow-app .
|
||||||
|
|
||||||
|
### 2.Run the conatainer
|
||||||
|
docker run -it --rm pocketflow-app
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 💡 Development Tutorial
|
## 💡 Development Tutorial
|
||||||
|
|
||||||
- I built using [**Agentic Coding**](https://zacharyhuang.substack.com/p/agentic-coding-the-most-fun-way-to), the fastest development paradigm, where humans simply [design](docs/design.md) and agents [code](flow.py).
|
- I built using [**Agentic Coding**](https://zacharyhuang.substack.com/p/agentic-coding-the-most-fun-way-to), the fastest development paradigm, where humans simply [design](docs/design.md) and agents [code](flow.py).
|
||||||
|
|||||||
+1
-1
@@ -56,7 +56,7 @@ def call_llm(prompt: str, use_cache: bool = True) -> str:
|
|||||||
|
|
||||||
# You can comment the previous line and use the AI Studio key instead:
|
# You can comment the previous line and use the AI Studio key instead:
|
||||||
client = genai.Client(
|
client = genai.Client(
|
||||||
api_key=os.getenv("GEMINI_API_KEY", "AIzaSyDzXuRp0hP6wAWUFTGRrUPDiKWffUm7vGk"),
|
api_key=os.getenv("GEMINI_API_KEY", ""),
|
||||||
)
|
)
|
||||||
model = os.getenv("GEMINI_MODEL", "gemini-2.5-pro-exp-03-25")
|
model = os.getenv("GEMINI_MODEL", "gemini-2.5-pro-exp-03-25")
|
||||||
# model = os.getenv("GEMINI_MODEL", "gemini-2.5-flash-preview-04-17")
|
# model = os.getenv("GEMINI_MODEL", "gemini-2.5-flash-preview-04-17")
|
||||||
|
|||||||
Reference in New Issue
Block a user