Last active
July 19, 2024 12:00
-
-
Save pmarinova/0b345a2656abe079c322ad0a90a32c61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Build a docker image for running a github pages site locally. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:3.3 | |
COPY Gemfile . | |
RUN bundle install | |
WORKDIR /src/site | |
CMD ["jekyll", "serve", "-H", "0.0.0.0", "-P", "4000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:3.3-alpine | |
RUN apk update && apk add --no-cache make build-base | |
COPY Gemfile . | |
RUN bundle install | |
WORKDIR /src/site | |
CMD ["jekyll", "serve", "-H", "0.0.0.0", "-P", "4000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'github-pages', group: :jekyll_plugins | |
gem 'webrick', '~> 1.8' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment