Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM library/ruby:2.2.8

RUN apt-get update -qq
RUN apt-get install -y build-essential libpq-dev

RUN mkdir -p /usr/src/app
COPY . /usr/src/app/
WORKDIR /usr/src/app

RUN bundle install
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

ruby '2.1.0'
ruby '2.2.8'

gem 'sinatra'
gem 'sinatra-contrib'
Expand Down
63 changes: 0 additions & 63 deletions Gemfile.lock

This file was deleted.

21 changes: 21 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: '2'
services:
db:
image: memcached
web:
build: .
command: bundle exec unicorn -p 3000
volumes:
- .:/myapp
ports:
- "3000:3000"
depends_on:
- db
environment:
MEMCACHEDCLOUD_SERVERS: db
MEMCACHEDCLOUD_USERNAME: ""
MEMCACHEDCLOUD_PASSWORD: ""
GITHUB_CLIENT_ID: ""
GITHUB_CLIENT_SECRET: ""
WEB_CONCURRENCY: ""