Skip to content

Commit

Permalink
simplify dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
le4ker committed Dec 30, 2024
1 parent 3f4ea8e commit 054dac7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 054dac7

Please sign in to comment.