Added docker compose to simulate GitHub pages

This commit is contained in:
Rolf Geuenich 2023-11-03 15:23:19 +01:00
parent 66e07503a2
commit 7eed8ce402
4 changed files with 42 additions and 0 deletions

11
.gitignore vendored Normal file
View File

@ -0,0 +1,11 @@
# Copied from https://github.com/github/gitignore/blob/main/Jekyll.gitignore
# Ignore metadata generated by Jekyll
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
# Ignore folders generated by Bundler
.bundle/
vendor/
Gemfile.lock

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM ruby:2.7
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
WORKDIR /usr/src/app
COPY Gemfile ./
RUN gem install bundler && bundle install
EXPOSE 4000

6
Gemfile Normal file
View File

@ -0,0 +1,6 @@
source "https://rubygems.org"
gem "github-pages", group: :jekyll_plugins
gem "jekyll"
gem "json"
gem "webrick", group: :development

13
docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: "3.5"
services:
jekyll:
build:
context: ./
ports:
- 4000:4000
volumes:
- ./:/usr/src/app
stdin_open: true
tty: true
command: bundle exec jekyll serve -H 0.0.0.0 -t --force_polling