From 1951554367f39e495781cea5d483f8ea0d2a7f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sat, 15 Nov 2025 15:24:38 +0100 Subject: [PATCH] feat: add Dockerfile for Coolify deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Multi-stage build: - Stage 1: Build Jekyll site with Ruby 3.4.1 - Stage 2: Serve with nginx:alpine 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- Dockerfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b20f422 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +# Build stage +FROM ruby:3.4.1-alpine AS builder + +# Install build dependencies +RUN apk add --no-cache build-base + +# Set working directory +WORKDIR /app + +# Copy Gemfile and install dependencies +COPY Gemfile Gemfile.lock ./ +RUN bundle install + +# Copy source files +COPY . . + +# Build Jekyll site +RUN bundle exec jekyll build + +# Production stage +FROM nginx:alpine + +# Copy built site from builder +COPY --from=builder /app/_site /usr/share/nginx/html + +# Expose port 80 +EXPOSE 80 + +# Start nginx +CMD ["nginx", "-g", "daemon off;"]