From 054dac7619d38df100a01a56d112fbf6fe7ab782 Mon Sep 17 00:00:00 2001 From: Panos Sakkos Date: Mon, 30 Dec 2024 11:01:45 +0200 Subject: [PATCH] simplify dockerfile --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 77094fb35..8897b4c15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ FROM jekyll/jekyll:4.2.2 +# install dependencies WORKDIR /srv/jekyll -COPY Gemfile* ./ +COPY Gemfile Gemfile.lock ./ RUN bundle install + +# copy rest of the files COPY . . -RUN ruby bin/generate_tags.rb -RUN ruby bin/generate_categories.rb + +# generate tags and categories +RUN ruby bin/generate_tags.rb && ruby bin/generate_categories.rb CMD ["jekyll", "serve", "--livereload", "--force_polling"]