-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In order to revise the way the website is built and hosted, a basic Docker image has been added to handle the whole process of generating all feeds and building the website.
- Loading branch information
1 parent
fcc3ee3
commit c5f238d
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.ruff_cache | ||
.vscode | ||
.hugo_build.lock | ||
site/public/ | ||
site/data/ | ||
feed/ | ||
.venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM python:3.11-alpine | ||
|
||
RUN apk add hugo && pip install poetry | ||
|
||
COPY . /app | ||
WORKDIR /app | ||
|
||
RUN poetry install && chmod 655 build-website.sh | ||
|
||
CMD sh /app/build-website.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/env sh | ||
|
||
echo "Generate all feeds" | ||
poetry run python generate_feed.py | ||
|
||
sh bin/prepare-hugo-build.sh | ||
|
||
echo "Building Hugo website" | ||
cd site | ||
hugo | ||
|
||
echo "Done!" |