Skip to content

Commit

Permalink
Avoid Gemfile from site hiding installed gems
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mrmanc committed Mar 1, 2024
1 parent a38857c commit 7292abd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Expand Up @@ -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"]
2 changes: 2 additions & 0 deletions Dockerfile.alpine
Expand Up @@ -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"]

0 comments on commit 7292abd

Please sign in to comment.