Skip to content

Instantly share code, notes, and snippets.

@hovancik
Created August 29, 2017 10:39
Show Gist options
  • Save hovancik/70f53b797d6a38bb74bee6815920e326 to your computer and use it in GitHub Desktop.
Save hovancik/70f53b797d6a38bb74bee6815920e326 to your computer and use it in GitHub Desktop.
FROM ruby:2.4.1
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev
# Node.js
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - \
&& apt-get install -y nodejs
RUN apt-get update && apt-get install -y curl apt-transport-https wget && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install -y yarn
RUN mkdir /server
WORKDIR /server
ADD Gemfile /server/Gemfile
ADD Gemfile.lock /server/Gemfile.lock
ADD package.json /server/package.json
ADD yarn.lock /server/yarn.lock
RUN bundle install
RUN yarn install
ADD . /server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment