Permalink
Browse files

docker files added (#17)

  • Loading branch information...
igrishaev committed Apr 6, 2017
1 parent 9278732 commit d60747c7cc414f36cab87e993c1569196b5314c0
Showing with 41 additions and 3 deletions.
  1. +12 −0 Dockerfile
  2. +0 −3 Gemfile.lock
  3. +8 −0 Makefile
  4. +19 −0 README.md
  5. +2 −0 _config.yml
@@ -0,0 +1,12 @@
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y jekyll bundler
RUN mkdir /deeprefactoring
WORKDIR /deeprefactoring
COPY Gemfile* ./
RUN bundle install
RUN rm Gemfile*
CMD ["jekyll", "serve"]
@@ -52,8 +52,5 @@ DEPENDENCIES
minima (~> 2.0)
tzinfo-data
RUBY VERSION
ruby 2.3.0p0
BUNDLED WITH
1.13.6
@@ -0,0 +1,8 @@
PROJECT := deeprefactoring
docker-build:
docker build -t $(PROJECT) .
docker-run:
docker run -it --rm -p 4000:4000 -v $(CURDIR):/$(PROJECT) $(PROJECT)
@@ -0,0 +1,19 @@
### Installation
1. Clone that repo.
2. Build Docker image:
```bash
make docker-build
```
3. Run the sever:
```bash
make docker-run
```
Now open http://127.0.0.1:4000/ in browser. Once you change any file inside a
repo, the server will rebuild the site.
@@ -8,3 +8,5 @@ exclude:
- Gemfile.lock
- vendor
paginate: 5
host: 0.0.0.0
port: 4000

0 comments on commit d60747c

Please sign in to comment.