# === Build-Phase: Jekyll kompiliert die statische Website === FROM ruby:3.2-alpine AS builder RUN apk add --no-cache build-base WORKDIR /site COPY Gemfile ./ RUN bundle install COPY . . RUN bundle exec jekyll build # === Serve-Phase: nginx liefert nur die fertigen Dateien aus === FROM nginx:alpine COPY nginx.conf /etc/nginx/conf.d/default.conf COPY --from=builder /site/_site /usr/share/nginx/html EXPOSE 80