Skip to content

Instantly share code, notes, and snippets.

@mrstebo
Created June 2, 2020 12:35
Show Gist options
  • Select an option

  • Save mrstebo/a464751412818b4d6bb6c36e227aa683 to your computer and use it in GitHub Desktop.

Select an option

Save mrstebo/a464751412818b4d6bb6c36e227aa683 to your computer and use it in GitHub Desktop.
developing-ruby-rails-using-docker-windows-1
FROM ruby:2.3.1
RUN apt-get update -qq && apt-get install -y build-essential
# for postgres
RUN apt-get install -y libpq-dev
# for nokogiri
RUN apt-get install -y libxml2-dev libxslt1-dev
# for a JS runtime
RUN apt-get install -y nodejs
ENV APP_HOME /myapp
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
ADD Gemfile* $APP_HOME/
RUN bundle install
ADD . $APP_HOME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment