Migrate from Kirby CMS to Hugo with Gokarna theme
- Remove all Kirby/PHP files - Add Hugo config with Gokarna theme as git submodule - Add nginx + Hugo Dockerfile replacing PHP/Apache - Update deploy.php to run hugo after git pull - Update .gitignore for Hugo output Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
29
kirby/Dockerfile
Normal file
29
kirby/Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
# Install nginx, PHP-CLI, git, curl
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
nginx \
|
||||
php-cli \
|
||||
php-fpm \
|
||||
git \
|
||||
curl \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Hugo (extended)
|
||||
ARG HUGO_VERSION=0.147.0
|
||||
RUN curl -L "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz" \
|
||||
| tar -xz -C /usr/local/bin hugo
|
||||
|
||||
# nginx config
|
||||
COPY nginx.conf /etc/nginx/sites-available/default
|
||||
|
||||
# PHP-FPM for deploy.php
|
||||
RUN sed -i 's|listen = /run/php/php.*-fpm.sock|listen = 127.0.0.1:9000|' /etc/php/*/fpm/pool.d/www.conf
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user