Skip to content

Commit 1bfb9d6

Browse files
saltedlollySorixelle
authored andcommitted
Fixes for docker with updated readme
Signed-off-by: Olly Stedall <[email protected]>
1 parent 3c46e71 commit 1bfb9d6

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN bundle config --global frozen 1
99

1010
WORKDIR /usr/src/app
1111

12-
COPY Gemfile Gemfile.lock ./
12+
COPY .ruby-version Gemfile Gemfile.lock ./
1313
RUN bundle install
1414

1515
COPY . .

README.md

Lines changed: 14 additions & 0 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.

0 commit comments

Comments
 (0)