Skip to content

Instantly share code, notes, and snippets.

@iwaffles
Created July 11, 2016 20:00
Show Gist options
  • Save iwaffles/85a1561657fe4954e8144caf2d76fa99 to your computer and use it in GitHub Desktop.
Save iwaffles/85a1561657fe4954e8144caf2d76fa99 to your computer and use it in GitHub Desktop.
FROM ruby:2.2.2
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev
# for a JS runtime
RUN apt-get install -y nodejs
RUN mkdir /app
WORKDIR /app
ADD Gemfile /app/Gemfile
RUN bundle install
ADD . /app
@ekristen
Copy link

ekristen commented Jul 11, 2016

FROM ruby:2.2.2
WORKDIR /app                                                          

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

# for a JS runtime                                                    
RUN apt-get install -y nodejs                                         

ADD Gemfile /app/Gemfile                                              
RUN bundle install

ADD . /app```

@ekristen
Copy link

FROM ruby:2.2.2
WORKDIR /app                                                          

RUN \
  apt-get update -qq && \
  apt-get install -y build-essential libpq-dev nodejs && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ADD Gemfile /app/Gemfile                                              
RUN bundle install

ADD . /app```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment