cce589997e6e63f20a1c76b6f1c0f280f55f5699
workflow.yml / build (push) Successful in 25m46s
Gitea Docker Image with Jupyter Support
This repository builds a custom Gitea container image based on the official docker.gitea.com/gitea image and adds Python/Jupyter tooling for notebook rendering inside Gitea.
What this image includes
- Gitea runtime from the official upstream image
uvfor Python tool installation- Python runtime configured via
PYTHON_VERSION - Jupyter and
nbconvertfor rendering.ipynbfiles in the Gitea markup pipeline - Typical Gitea data directories mounted under
/data/giteaand/data/git
This is intended for environments where notebooks should be previewed in Gitea and where the image must include the Jupyter rendering dependencies required by the app configuration.
Build
docker build \
--build-arg GITEA_VERSION=1.26.4 \
--build-arg PYTHON_VERSION=3.14 \
-t gitea-jupyter:latest .
The default build arguments are:
GITEA_VERSION=1.26.4PYTHON_VERSION=3.14
Run
docker run -d \
--name gitea \
-p 3000:3000 \
-p 22:22 \
-v "$PWD/data:/data" \
gitea-jupyter:latest
Then open:
- http://localhost:3000
- SSH on port 22 if you are using Gitea's Git over SSH
Notebook rendering support
The configured notebook pipeline is enabled with:
[markup.jupyter]
ENABLED = true
FILE_EXTENSIONS = .ipynb
RENDER_COMMAND = "jupyter-nbconvert --stdin --stdout --to html --template basic"
This allows .ipynb files to be rendered as HTML within Gitea, which is useful for documentation and notebook-heavy repositories.