Skip to content

Instantly share code, notes, and snippets.

@ngw
Created July 20, 2018 16:08
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 ngw/65ea7a8a66a34878475e5c3bc8941702 to your computer and use it in GitHub Desktop.
Save ngw/65ea7a8a66a34878475e5c3bc8941702 to your computer and use it in GitHub Desktop.
FROM ruby:2.5.1
MAINTAINER Nicholas Wieland "ngw@utelier.com"
RUN apt-get update && apt-get install -qq -y build-essential libpq-dev postgresql-client curl apt-transport-https imagemagick --fix-missing --no-install-recommends
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y nodejs yarn
RUN bundle config --global frozen 1
WORKDIR /usr/src/app
COPY Gemfile Gemfile.lock ./
RUN bundle install
COPY . .
RUN yarn install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment