Skip to content

Commit 77cf5a4

Browse files
saltedlollySorixelle
authored andcommitted
Update Docker instructions in Readme
1 parent ad46caa commit 77cf5a4

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@ the information in one of the sections below.
1717

1818
## Getting Started
1919

20+
### Option 1: Install with Docker
21+
22+
Clone repo to your local machine. From the repo root, enter:
23+
24+
```
25+
docker build -t rebble-dev .
26+
27+
docker run --rm -it -p 4000:4000 -v "$PWD":/site -w /site rebble-dev \
28+
bundle exec jekyll serve --host 0.0.0.0 --port 4000
29+
```
30+
Then open http://localhost:4000
31+
32+
### Option 2: Install natively (without Docker)
33+
2034
Once you have cloned the project you will need to run `bundle install` to
2135
install the Ruby dependencies. If you do not have [bundler](http://bundler.io/)
2236
installed you will need to run `[sudo] gem install bundler` first.
@@ -25,17 +39,7 @@ You should also do `cp .env.sample .env` and edit the newly created `.env` file
2539
with the appropriate values. Take a look at the
2640
[Environment Variables documentation](/docs/environment.md) for more details.
2741

28-
To start the Jekyll web server, run `bundle exec jekyll serve`.
29-
30-
### Docker
31-
32-
Clone repo to your local machine. From the repo root, enter:
33-
34-
`docker build -t rebble-dev .`
35-
`docker run --rm -it -p 4000:4000 -v "$PWD":/site -w /site rebble-dev \`
36-
` bundle exec jekyll serve --host 0.0.0.0 --port 4000`
37-
38-
Then open http://localhost:4000
42+
To start the Jekyll web server, run `bundle exec jekyll serve`.
3943

4044
## JS Documentation
4145

0 commit comments

Comments
 (0)