Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Updates docker settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nkcr committed Sep 14, 2021
1 parent 340c4d8 commit 92eab97
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM jekyll/jekyll

RUN gem install bundler:1.17.1

WORKDIR /srv/jekyll

COPY Gemfile* ./
RUN bundle install

COPY . .
19 changes: 12 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
jekyll:
image: jekyll/jekyll
command: jekyll serve --watch --incremental
ports:
- 4000:4000
volumes:
- .:/srv/jekyll
# docker-compose build jekyll
# docker-compose up
services:
jekyll:
image: nkcr/jekyll:v1
build:
context: .
command: jekyll build
ports:
- 4000:4000
volumes:
- .:/srv/jekyll

0 comments on commit 92eab97

Please sign in to comment.