Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ output.txt
rss.xml
/.idea/
/CLAUDE.md
/QWEN.md
/.qwen
14 changes: 14 additions & 0 deletions Dockerfile.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM python:3.12-slim

RUN apt-get update && apt-get install -y --no-install-recommends make rsync curl gnupg && rm -rf /var/lib/apt/lists/*

WORKDIR /docs

COPY requirements.txt .
RUN pip install -r requirements.txt

COPY . .

EXPOSE 8000

CMD ["make", "serve"]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ pip install -r requirements.txt
make serve
```

## Docker (local)
```shell
docker stop freeunit-docs; docker rm freeunit-docs 2>/dev/null; docker build -f Dockerfile.local -t freeunit-docs-local . && docker run -d -p 8000:8000 --name freeunit-docs freeunit-docs-local
http://localhost:8000/
```



The site is served locally at `http://localhost:8000`.

Pull requests automatically deploy a preview site when opened by a maintainer.
Expand Down
Loading
Loading