change location

This commit is contained in:
Amir Pourmand 2022-03-04 01:11:27 +03:30
parent e65c322921
commit 2b573263ce
4 changed files with 20 additions and 0 deletions

5
publish/Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM jekyll/jekyll
Label MAINTAINER Amir Pourmand
WORKDIR /srv/jekyll
ADD publish/Gemfile /srv/jekyll/
RUN bundle install

11
publish/Gemfile Normal file
View file

@ -0,0 +1,11 @@
source 'https://rubygems.org'
gem "jekyll"
gem "jekyll-theme-primer"
gem "jekyll-optional-front-matter"
gem "jekyll-default-layout"
gem "jekyll-readme-index"
gem "jekyll-titles-from-headings"
gem "jekyll-relative-links"
gem "kramdown-parser-gfm"
gem "kramdown"

1
publish/docker_build.sh Executable file
View file

@ -0,0 +1 @@
docker build -t "foam:Dockerfile" -f publish/Dockerfile .

3
publish/docker_run.sh Executable file
View file

@ -0,0 +1,3 @@
docker run --rm -v "$PWD:/srv/jekyll/" -p "8080:8080" \
-it foam:Dockerfile bundler \
exec jekyll serve --watch --port=8080 --host=0.0.0.0