Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM jekyll/jekyll:4.2.0
# until release of 4.3 we should ping 4.2.0
Label MAINTAINER Amir Pourmand
#install imagemagick tool for convert command
RUN apk add --no-cache --virtual .build-deps \
libxml2-dev \
shadow \
autoconf \
g++ \
make
# && apk add --no-cache imagemagick-dev imagemagick
WORKDIR /srv/jekyll
ADD Gemfile /srv/jekyll/
ADD lagrange.gemspec /srv/jekyll
RUN bundle install
RUN bundle add webrick
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: "3"

services:
jekyll_custom:
build: .
command: bash -c "
rm -f Gemfile.lock
&& bundle exec jekyll serve --watch --port=8080 --host=0.0.0.0 --livereload --verbose --trace"
ports:
- 8080:8080
volumes:
- .:/srv/jekyll