Skip to content

Commit

Permalink
Upgrade jekyll docker and fix dependabot alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Oct 19, 2024
1 parent 86b3071 commit 69eeb46
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 303 deletions.
7 changes: 1 addition & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
version: '3.9'
services:
jekyll:
image: jekyll/jekyll:4.0
container_name: pages
build: ./docs
restart: always
volumes:
- .:/usr/src/robosats
command: bash -c "cd /usr/src/robosats/docs/
&& bundle install
&& bundle exec jekyll serve --force_polling -H 0.0.0.0 -P 4000"
ports:
- 4000:4000

Expand Down
12 changes: 12 additions & 0 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM jekyll/jekyll:4.0

WORKDIR /usr/src/docs

COPY . .

RUN chown -R jekyll:jekyll /usr/src/docs
RUN chmod -R 755 /usr/src/docs

RUN bundle install

CMD ["bundle", "exec", "jekyll", "serve", "--force_polling", "-H", "0.0.0.0", "-P", "4000"]
2 changes: 2 additions & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ source "https://rubygems.org"
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!

gem "activesupport", ">= 6.1.7.5"
gem "minimal-mistakes-jekyll"
gem "jekyll-include-cache"
gem "webrick"
Expand Down
291 changes: 0 additions & 291 deletions docs/Gemfile.lock

This file was deleted.

7 changes: 1 addition & 6 deletions docs/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
version: '3.9'
services:
jekyll:
image: jekyll/jekyll:4.0
container_name: pages
build: .
restart: always
volumes:
- .:/usr/src/docs
command: bash -c "cd /usr/src/docs/
&& bundle install
&& bundle exec jekyll serve --force_polling -H 0.0.0.0 -P 4000"
ports:
- 4000:4000

0 comments on commit 69eeb46

Please sign in to comment.