Skip to content

Instantly share code, notes, and snippets.

@blackrobot
Forked from ncherro/Dockerfile
Last active May 5, 2016 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blackrobot/451d7c26f0fef639d5b836b19ad5b270 to your computer and use it in GitHub Desktop.
Save blackrobot/451d7c26f0fef639d5b836b19ad5b270 to your computer and use it in GitHub Desktop.
Dockerfile
FROM ruby:2.2
RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential \
nodejs \
libpq-dev \
libxml2-dev \
libxslt1-dev \
libqt4-webkit \
libqt4-dev \
xvfb \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get autoremove -y
RUN mkdir -p /app
WORKDIR /app
COPY Gemfile /app/
COPY Gemfile.lock /app/
RUN bundle install -j 4
COPY . ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment