Skip to content
Merged

Dev #411

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
7943ee4
feat(Dependencies): Update dependency mkdocs-material to v9.6.10 (#393)
renovate[bot] Mar 30, 2025
8d718bf
feat(Dependencies): Update dependency mkdocs-material to v9.6.11 (#394)
renovate[bot] Apr 1, 2025
7a33fcb
feat(Dependencies): Update python Docker tag to v3.13.3 (#395)
renovate[bot] Apr 9, 2025
7b58879
feat(Dependencies): Update dependency mkdocs-material to v9.6.12 (#396)
renovate[bot] Apr 17, 2025
76c3a6b
feat(Dependencies): Update dependency mkdocs-material to v9.6.13 (#397)
renovate[bot] May 10, 2025
3ccafdb
feat(Dependencies): Update dependency mkdocs-material to v9.6.14 (#398)
renovate[bot] May 13, 2025
95e9e69
feat(Dependencies): Update python Docker tag to v3.13.4 (#399)
renovate[bot] Jun 4, 2025
2d2b0d2
feat(Dependencies): Update python Docker tag to v3.13.5 (#400)
renovate[bot] Jun 13, 2025
8b24c49
feat(Dependencies): Update dependency mkdocs-material to v9.6.15 (#401)
renovate[bot] Jul 1, 2025
c4bdb82
feat(Dependencies): Update dependency mkdocs-material to v9.6.16 (#402)
renovate[bot] Jul 26, 2025
f2eb551
feat(Dependencies): Update python Docker tag to v3.13.6 (#403)
renovate[bot] Aug 7, 2025
99cdbbd
feat(Dependencies): Update actions/checkout action to v5
renovate[bot] Aug 11, 2025
6eb8a91
Merge pull request #405 from deNBI/deps/actions-checkout-5.x
dweinholz Aug 12, 2025
374e8bc
feat(Dependencies): Update actions/setup-python action to v6
renovate[bot] Sep 4, 2025
4023c66
Merge pull request #409 from deNBI/deps/actions-setup-python-6.x
dweinholz Sep 8, 2025
86df8fd
feat(Dependencies): Update dependency mkdocs-glightbox to v0.5.1
renovate[bot] Sep 8, 2025
60bc0a0
fixd Dockerfile
dweinholz Sep 29, 2025
2e14395
Merge pull request #408 from deNBI/deps/mkdocs-glightbox-0.x
dweinholz Sep 29, 2025
c9f5b0e
feat(Dependencies): Update dependency mkdocs-material to v9.6.20
renovate[bot] Sep 29, 2025
6530e36
Merge pull request #406 from deNBI/deps/mkdocs-material-9.6.x
dweinholz Sep 29, 2025
bb5dc68
feat(Dependencies): Update python Docker tag to v3.13
renovate[bot] Sep 29, 2025
b37432e
Merge pull request #410 from deNBI/deps/python-3.x
dweinholz Sep 29, 2025
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
4 changes: 2 additions & 2 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
uses: rokroskar/workflow-run-cleanup-action@v0.3.3
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.13' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- uses: actions/checkout@v4.2.2
- uses: actions/checkout@v5.0.0
- name: Build with retry
uses: Wandalen/wretry.action@v3.8.0
with:
Expand Down
40 changes: 31 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
FROM python:3.13.2
# Use a stable Python base image (Debian 12 based)
FROM python:3.13-slim

# Set environment variables
ENV WEBHOOK_URL_PREFIX="wiki/hooks"
RUN apt update
RUN apt install -y unzip apache2 build-essential python3-dev python3-pip python3-setuptools python3-wheel python3-cffi libcairo2 libpango-1.0-0 libpangocairo-1.0-0 libgdk-pixbuf2.0-0 libffi-dev shared-mime-info git

# Install system dependencies
RUN apt update && apt install -y --no-install-recommends \
unzip apache2 build-essential python3-dev python3-pip \
python3-setuptools python3-wheel python3-cffi libcairo2 \
libpango-1.0-0 libpangocairo-1.0-0 libgdk-pixbuf-2.0-0 \
libffi-dev shared-mime-info git wget curl ca-certificates \
&& apt clean && rm -rf /var/lib/apt/lists/*

# Copy and install Python dependencies
ADD requirements.txt .
RUN python -m pip install -r requirements.txt
RUN wget -qO- https://github.com/adnanh/webhook/releases/download/2.8.1/webhook-linux-amd64.tar.gz \
| tar xzv --strip 1 -C /usr/local/bin
RUN mkdir -p /var/webhook /srv_root/docs
RUN pip install --no-cache-dir -r requirements.txt

# Install webhook binary
RUN wget -qO- https://github.com/adnanh/webhook/releases/download/2.8.1/webhook-linux-amd64.tar.gz \
| tar xzv --strip 1 -C /usr/local/bin

# Create required directories
RUN mkdir -p /var/webhook /srv_root/docs /var/www/html/wiki

# Copy your scripts and config files
ADD update.sh /usr/local/bin/update.sh
COPY config/hooks.json /usr/local/bin/hooks.json
COPY config/apache2.conf /etc/apache2/apache2.conf
ADD start.sh /usr/local/bin/start.sh
RUN mkdir /var/www/html/wiki
ENTRYPOINT "start.sh"

# Ensure shell scripts are executable
RUN chmod +x /usr/local/bin/start.sh /usr/local/bin/update.sh

# Set container entrypoint
ENTRYPOINT ["/usr/local/bin/start.sh"]

4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mkdocs-material==9.6.9
mkdocs-glightbox==0.4.0
mkdocs-material==9.6.20
mkdocs-glightbox==0.5.1
mkdocs==1.6.1
mkdocs-htmlproofer-plugin
pygments
Expand Down