Skip to content

Commit d36043b

Browse files
committed
Added Docker note to README, closes #21
1 parent 4dc5d6a commit d36043b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ Benjamin Howe's personal website, deployed to Cloudflare Pages. Originally gener
44

55
## Installation
66

7-
[Install Ruby and Jekyll](https://jekyllrb.com/docs/step-by-step/01-setup/), then clone this repository in a convenient location. In the future it might be nice to have these dependencies within a container ([there's a GitHub issue for that](https://github.com/BenjaminEHowe/beh.uk/issues/21)).
7+
Clone this repository in a convenient location.
88

9-
Install gems using `bundle install`.
9+
To run locally without Docker [install Ruby and Jekyll](https://jekyllrb.com/docs/step-by-step/01-setup/).
1010

1111
## Usage
1212

13-
Run `bundle exec jekyll serve` and navigate to http://127.0.0.1:4000.
13+
Install gems using `bundle install` and then run `bundle exec jekyll serve` and navigate to http://127.0.0.1:4000.
14+
15+
### Using Docker
16+
17+
- Windows (cmd): `docker run -it --rm -v %cd%:/app -w /app -p 127.0.0.1:4000:4000 ruby:3.3.1 sh -c "bundle install && bundle exec jekyll serve --force_polling -H 0.0.0.0"`
18+
- macOS & Linux (bash): `docker run -it --rm -v "$PWD":/app -w /app -p 127.0.0.1:4000:4000 ruby:3.3.1 sh -c "bundle install && bundle exec jekyll serve -H 0.0.0.0"`
1419

1520
## Tests
1621

0 commit comments

Comments
 (0)