Skip to content

Commit f9f24a8

Browse files
committed
First pass, using Grok as assist
1 parent 4e564ac commit f9f24a8

9 files changed

Lines changed: 495 additions & 111 deletions

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.venv
2+
__pycache__
3+
*.pyc
4+
.git*

docker-compose.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
services:
22
app:
3-
image: python:3.14-slim
4-
command: python -m mkdocs serve -a 0.0.0.0:8000 --watch-theme --livereload
5-
entrypoint: /app/docker-entrypoint.sh
3+
image: ghcr.io/astral-sh/uv:python3.14-trixie-slim
64
working_dir: /app
5+
entrypoint: /app/docker-entrypoint.sh
6+
command: uv run -- mkdocs serve -a 0.0.0.0:8000 --watch-theme --livereload
77
ports:
8-
- 8000:8000
8+
- "8000:8000"
99
volumes:
1010
- .:/app
11-
- pip-cache:/root/.cache/pip
11+
- uv-cache:/root/.cache/uv
12+
# Optional: protect .venv if you ever create one locally
13+
- /app/.venv
1214
environment:
1315
- PYTHONUNBUFFERED=1
16+
- UV_LINK_MODE=copy # helps with bind mounts
1417
stdin_open: true
1518
tty: true
1619

1720
volumes:
18-
pip-cache:
21+
uv-cache:

docker-entrypoint.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
#!/bin/bash
1+
#!/bin/sh
22
set -e
33

4-
pip install -r requirements.txt
4+
# Sync dependencies (fast thanks to uv + cache)
5+
uv sync --frozen --no-dev # or remove --no-dev if you want dev deps
6+
7+
# Optional: make sure mkdocs is in PATH
8+
export PATH="/app/.venv/bin:$PATH"
59

610
exec "$@"

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[project]
2+
name = "weeklydevchat-github-io"
3+
version = "0.1.0"
4+
requires-python = ">=3.14"
5+
dependencies = [
6+
"mkdocs-material>=9.7.0",
7+
"pillow>=12.2.0",
8+
"pygments~=2.20.0",
9+
"urllib3>=2.7.0",
10+
]
11+
12+
# Optional but recommended
13+
[tool.uv]
14+
dev-dependencies = [
15+
# put dev-only tools here if needed
16+
]

requirements-dev.in

Lines changed: 0 additions & 7 deletions
This file was deleted.

requirements-dev.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

requirements.in

Lines changed: 0 additions & 11 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 79 deletions
This file was deleted.

uv.lock

Lines changed: 460 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)