Skip to content

Commit 915813b

Browse files
authored
Merge pull request #101 from srinadhkesineni/main
Add Docker support for local development
2 parents 86b2247 + 5aa86fa commit 915813b

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

.dockerignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Byte-compiled / cache files
2+
__pycache__/
3+
*.py[cod]
4+
*.pyo
5+
*.pyd
6+
7+
# Virtual environments
8+
venv/
9+
env/
10+
.venv/
11+
.env/
12+
13+
# Distribution / packaging
14+
*.egg-info/
15+
build/
16+
dist/
17+
18+
# Git and other VCS
19+
.git/
20+
.gitignore
21+
22+
# Editor files
23+
*.swp
24+
*.swo
25+
*.bak
26+
*.tmp
27+
.DS_Store
28+
.idea/
29+
.vscode/
30+
31+
# Secrets (if you’re using .env for API keys etc.)
32+
.env

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM python:3.10-slim
2+
3+
# update packages, install git and remove cache
4+
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
5+
6+
WORKDIR /app
7+
8+
COPY requirements.txt .
9+
RUN pip install --no-cache-dir -r requirements.txt
10+
11+
COPY . .
12+
13+
ENTRYPOINT ["python", "main.py"]

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ This is a tutorial project of [Pocket Flow](https://github.com/The-Pocket/Pocket
122122

123123
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).
124124

125+
125126
## 💡 Development Tutorial
126127

127128
- 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
137138
</a>
138139
</div>
139140
<br>
141+
142+
## 🐳 Running with Docker
143+
144+
To run this project in a Docker container:
145+
146+
Make sure before building the docker image you need to setup the google api key in utils/call_llm.py.
147+
148+
### 1. Build the Docker image
149+
```bash
150+
docker build -t pocketflow-app .
151+
```
152+
153+
### 2.Run the conatainer
154+
```bash
155+
docker run -it --rm -v <path_to_output_directory>:/app/output pocketflow-app --repo <repository_link>
156+
157+
example:
158+
159+
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
160+
161+
```

0 commit comments

Comments
 (0)