Skip to content

Commit e458ac6

Browse files
committed
removed v0.1 and udpated docker files
1 parent fe71a7d commit e458ac6

19 files changed

Lines changed: 61 additions & 1143 deletions

File tree

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.12-slim as builder
2+
3+
WORKDIR /app
4+
COPY pyproject.toml .
5+
RUN pip install -e .
6+
7+
FROM python:3.12-slim as runtime
8+
9+
WORKDIR /app
10+
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
11+
COPY --from=builder /usr/local/bin /usr/local/bin
12+
COPY src/ ./src/
13+
14+
EXPOSE 8000
15+
CMD ["uvicorn", "src.api.app:create_app", "--host", "0.0.0.0", "--port", "8000", "--factory"]

assets/examples/.gitkeep

Whitespace-only changes.

assets/outputs/.gitkeep

Whitespace-only changes.

docker-compose.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
version: "3.8"
2+
3+
services:
4+
gemini-blog-agent:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
ports:
9+
- "8000:8000"
10+
environment:
11+
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
12+
- GOOGLE_SEARCH_ENGINE_ID=${GOOGLE_SEARCH_ENGINE_ID}
13+
- GEMINI_MODEL=${GEMINI_MODEL:-gemini-2.5-flash}
14+
- LANGSMITH_API_KEY=${LANGSMITH_API_KEY}
15+
- LANGSMITH_PROJECT=${LANGSMITH_PROJECT:-gemini-search-blog-agent}
16+
- MAX_CONCURRENT_REQUESTS=${MAX_CONCURRENT_REQUESTS:-10}
17+
- MAX_SCRAPE_TIMEOUT=${MAX_SCRAPE_TIMEOUT:-10}
18+
- MAX_ATTEMPTS=${MAX_ATTEMPTS:-3}
19+
- SEO_THRESHOLD=${SEO_THRESHOLD:-75}
20+
- ENVIRONMENT=production
21+
volumes:
22+
- ./logs:/app/logs
23+
restart: unless-stopped
24+
healthcheck:
25+
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
26+
interval: 30s
27+
timeout: 10s
28+
retries: 3
29+
start_period: 40s
30+
31+
# Optional: Redis for production memory storage
32+
redis:
33+
image: redis:7-alpine
34+
ports:
35+
- "6379:6379"
36+
volumes:
37+
- redis_data:/data
38+
restart: unless-stopped
39+
healthcheck:
40+
test: ["CMD", "redis-cli", "ping"]
41+
interval: 30s
42+
timeout: 3s
43+
retries: 3
44+
45+
volumes:
46+
redis_data:

src/api/endpoints.py

Whitespace-only changes.

src/api/init.py

Whitespace-only changes.

src/api/schemas.py

Whitespace-only changes.

src/config/constants.py

Whitespace-only changes.

src/config/init.py

Whitespace-only changes.

src/config/settings.py

Whitespace-only changes.

0 commit comments

Comments
 (0)