blog: Zola site, nginx image, Forgejo deploy pipeline
All checks were successful
Build and Deploy to Production / check (push) Successful in 9s
Build and Deploy to Production / build (push) Successful in 25s
Build and Deploy to Production / deploy (push) Successful in 36s

This commit is contained in:
Sergei Poljanski 2026-07-16 19:51:31 +04:00
commit a4b677f898
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
23 changed files with 561 additions and 0 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
# Zola publishes no :latest tag; bump the pin manually (flake.nix tracks nixpkgs separately).
FROM ghcr.io/getzola/zola:v0.22.1 AS build
COPY . /project
WORKDIR /project
RUN ["zola", "build"]
FROM nginx:1.28-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /project/public /usr/share/nginx/html
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD wget -qO /dev/null http://127.0.0.1/ || exit 1