From 7292abd8578ba14004e22fa153bf02ab9a4c9173 Mon Sep 17 00:00:00 2001 From: Mark Crossfield Date: Fri, 1 Mar 2024 19:26:55 +0000 Subject: [PATCH] Avoid Gemfile from site hiding installed gems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’ve specified the BUNDLE_GEMFILE as the one that exists in the /src/site location (the source of the site being built) was preventing Jekyll from finding the installed dependencies. --- Dockerfile | 2 ++ Dockerfile.alpine | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 3caedbfe..6fe6a8df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,8 @@ ENV LANG en_US.UTF-8 ENV LANGUAGE en_US.UTF-8 ENV LC_ALL en_US.UTF-8 +ENV BUNDLE_GEMFILE=/src/gh/pages-gem/Gemfile + WORKDIR /src/site CMD ["jekyll", "serve", "-H", "0.0.0.0", "-P", "4000"] diff --git a/Dockerfile.alpine b/Dockerfile.alpine index aea69e92..717b1b8e 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -17,6 +17,8 @@ ENV LANG en_US.UTF-8 ENV LANGUAGE en_US.UTF-8 ENV LC_ALL en_US.UTF-8 +ENV BUNDLE_GEMFILE=/src/gh/pages-gem/Gemfile + WORKDIR /src/site CMD ["jekyll", "serve", "-H", "0.0.0.0", "-P", "4000"]