Skip to content

Commit

Permalink
Add dockerfile and explanaition in how to use it
Browse files Browse the repository at this point in the history
  • Loading branch information
hanneskaeufler committed Dec 21, 2019
1 parent d68b04e commit a84c550
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ruby:1.9

COPY Gemfile /app/Gemfile
COPY Gemfile.lock /app/Gemfile.lock

WORKDIR /app

RUN bundle install

CMD ["sh", "-c", "bundle exec rails server"]
9 changes: 9 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
A community-maintained resource to encourage and facilitate diverse
pair-programming. Help eagerly welcomed!

# Contributing

Building and running the app locally is easiest achieved by
using [docker](https://docker.com).

1. Build container using `docker build -t ppwm .`
2. Run container via `docker run --rm -it "$(pwd):/app" -p 3000:3000 ppwm`
3. Visit `localhost:3000` to see the app running

# LICENSE

Copyright (c) 2013 Avdi Grimm
Expand Down

0 comments on commit a84c550

Please sign in to comment.