Skip to content
/ rails Public
forked from convox/rails

VHX base image for Ruby on Rails

Notifications You must be signed in to change notification settings

vhx/rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

convox/rails

Convox base image for Ruby on Rails

Usage

FROM convox/rails

# copy only the files needed for bundle install
COPY Gemfile      /app/Gemfile
COPY Gemfile.lock /app/Gemfile.lock
RUN bundle install

# copy only the files needed for assets:precompile
COPY Rakefile   /app/Rakefile
COPY config     /app/config
COPY public     /app/public
COPY app/assets /app/app/assets
RUN rake assets:precompile

# copy the rest of the app
COPY . /app

Expectations

Application using this image should:

  • Copy their source files into /app
  • Listen for HTTP requests on port 3000.

Example Configuration

Using this image in your docker-compose.yml should look something like this:

labels:
  - convox.port.80.protocol=http
  - convox.port.443.protocol=https
ports:
  - 80:3000
  - 443:3000

Includes

Standard Ruby development headers

  • libmysqld-dev
  • libpq-dev
  • libsqlite3-dev
  • ruby-dev

About

VHX base image for Ruby on Rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 62.7%
  • Ruby 37.3%