Open mdlugosz-agh opened 1 year ago
Hi! I got a same issue with you recently, the stack trace probably means a incompatible version problem, you can try modifying the version of ruby docker image, for me the version 3.1-alpine3.18 works well
here's my docker compose file:
ARG JEKYLL_BASEURL=''
####################################
FROM ruby:3.1-alpine3.18 AS builder
RUN apk add --no-cache make build-base
RUN gem install bundler
WORKDIR /jekyll
ADD Gemfile Gemfile.lock ./
RUN bundle install
ADD . .
ARG JEKYLL_BASEURL
RUN bundle exec jekyll build --baseurl $JEKYLL_BASEURL
####################################
FROM nginx:alpine
ARG JEKYLL_BASEURL
COPY --from=builder /jekyll/_site /usr/share/nginx/html/$JEKYLL_BASEURL
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80