Merge pull request #101 from srinadhkesineni/main

Add Docker support for local development
This commit is contained in:
Zachary Huang
2025-05-15 15:02:25 -04:00
committed by GitHub
3 changed files with 67 additions and 0 deletions
+32
View File
@@ -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 youre using .env for API keys etc.)
.env
+13
View File
@@ -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"]
+22
View File
@@ -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).
## 💡 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).
@@ -137,3 +138,24 @@ The application will crawl the repository, analyze the codebase structure, gener
</a>
</div>
<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
```