Theme fest ins Repo uebernehmen statt als Submodule
Ein normaler git clone holt Submodules nicht mit - geprueft: nach dem Klonen des Repos war themes/gokarna leer. Portainer klont ebenso, der Build im Container waere also an dem fehlenden Theme gescheitert. Gokarna liegt jetzt direkt im Repo, festgeschrieben auf Commit 8306042, den Stand, mit dem die Seite bisher gebaut wurde. .gitmodules entfaellt. Nachteil: Theme-Updates muessen kuenftig von Hand eingespielt werden. Dafuer baut das Repo aus jedem beliebigen Klon heraus, ohne Sonderbehandlung. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
17
themes/gokarna/Containerfile
Normal file
17
themes/gokarna/Containerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM python:alpine
|
||||
|
||||
# Enable monospace fonts
|
||||
RUN apk add font-inconsolata fontconfig
|
||||
RUN fc-cache -fv
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
RUN apk add firefox geckodriver hugo
|
||||
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip install --requirement requirements.txt
|
||||
|
||||
# We mount the gokarna source code to avoid rebuilding the image
|
||||
|
||||
CMD [ "python", "./screenshot.py" ]
|
||||
Reference in New Issue
Block a user