mirror of
https://github.com/The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge.git
synced 2026-08-30 17:10:32 +08:00
Merge pull request #101 from srinadhkesineni/main
Add Docker support for local development
This commit is contained in:
@@ -0,0 +1,32 @@
|
|||||||
|
# Byte-compiled / cache files
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
*.pyo
|
||||||
|
*.pyd
|
||||||
|
|
||||||
|
# Virtual environments
|
||||||
|
venv/
|
||||||
|
env/
|
||||||
|
.venv/
|
||||||
|
.env/
|
||||||
|
|
||||||
|
# Distribution / packaging
|
||||||
|
*.egg-info/
|
||||||
|
build/
|
||||||
|
dist/
|
||||||
|
|
||||||
|
# Git and other VCS
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
|
||||||
|
# Editor files
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
.DS_Store
|
||||||
|
.idea/
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
# Secrets (if you’re using .env for API keys etc.)
|
||||||
|
.env
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
FROM python:3.10-slim
|
||||||
|
|
||||||
|
# update packages, install git and remove cache
|
||||||
|
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
ENTRYPOINT ["python", "main.py"]
|
||||||
@@ -122,6 +122,7 @@ 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).
|
||||||
|
|
||||||
|
|
||||||
## 💡 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).
|
||||||
@@ -137,3 +138,24 @@ The application will crawl the repository, analyze the codebase structure, gener
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
## 🐳 Running with Docker
|
||||||
|
|
||||||
|
To run this project in a Docker container:
|
||||||
|
|
||||||
|
Make sure before building the docker image you need to setup the google api key in utils/call_llm.py.
|
||||||
|
|
||||||
|
### 1. Build the Docker image
|
||||||
|
```bash
|
||||||
|
docker build -t pocketflow-app .
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2.Run the conatainer
|
||||||
|
```bash
|
||||||
|
docker run -it --rm -v <path_to_output_directory>:/app/output pocketflow-app --repo <repository_link>
|
||||||
|
|
||||||
|
example:
|
||||||
|
|
||||||
|
docker run -it --rm -v C:\Users\srinadh\PocketFlow-Tutorial-Codebase-Knowledge\output:/app/output pocketflow-app --repo https://github.com/srinadhkesineni/CI-CD.git
|
||||||
|
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user