Sign inSign up

dagope/githubpagebase

By dagope

Updated over 7 years ago

image prepare to use jekyll with githubpages

Image
0

332

dagope/githubpagebase repository overview

Build image:

  • File .dockerignore:
Gemfile.lock
_site
  • Dockerfile :
FROM ruby:2.5 
RUN apt-get update && apt-get install -y     

ENV CHOKIDAR_USEPOLLING 1
EXPOSE 4000

RUN gem install bundler
COPY Gemfile ./ 
RUN bundle install

RUN mkdir -p /app 
WORKDIR /app

CMD "/bin/bash"

Run with docker-compose.yml:

version: '3'
services:
  jekyll-build:
    image: dagope/githubpagebase:v1.0
    ports:
        - "4000:4000"
    volumes:
      - .:/app
    working_dir: /app    
    command: >
      sh -c 'bundle install &&
             bundle exec jekyll serve --host 0.0.0.0 -w --force_polling --config "_config.yml,_config_dev.yml"'

Tag summary

Content type

Image

Digest

Size

390.2 MB

Last updated

over 7 years ago

docker pull dagope/githubpagebase