Last active
          June 12, 2025 07:11 
        
      - 
      
 - 
        
Save aranajhonny/a3c2e333b1ba41a9b7bdace7cd58f6eb to your computer and use it in GitHub Desktop.  
    Rails Dockerfile for Zeit.co/now - https://github.com/aranajhonny/now-rails-example
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FROM ruby:2.3.3 | |
| RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | |
| RUN mkdir /app | |
| WORKDIR /app | |
| ADD Gemfile /app/Gemfile | |
| ADD Gemfile.lock /app/Gemfile.lock | |
| RUN bundle install | |
| ADD . /app | |
| EXPOSE 3000 | |
| CMD rails s -p 3000 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
@aranajhonny I was able to access my app by changing the command to
CMD rails s -b 0.0.0.0 -p 3000.