Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker image #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
7 changes: 7 additions & 0 deletions .dockerignore
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/
10 changes: 10 additions & 0 deletions Dockerfile
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
12 changes: 12 additions & 0 deletions build-website.sh
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!"