Skip to content

Instantly share code, notes, and snippets.

@jrideout
Created May 3, 2016 13:57
Show Gist options
  • Save jrideout/880479ccf034ccf3190682bf645d327e to your computer and use it in GitHub Desktop.
Save jrideout/880479ccf034ccf3190682bf645d327e to your computer and use it in GitHub Desktop.
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get -y --no-install-recommends install \
ruby2.3 ruby-dev rubygems \
git build-essential ssh \
libpq-dev libxml2-dev libmagic-dev libcurl3-dev \
postgresql-client \
npm nodejs-legacy nodejs-dev \
&& apt-get clean autoclean \
&& apt-get autoremove -y
RUN gem install bundler \
&& npm install -g bower
ENV APP_DIR=/usr/local/agari/cousteau/production/current/
COPY vendor/cache $APP_DIR/vendor/cache
COPY Gemfile* $APP_DIR
WORKDIR $APP_DIR
RUN bundle install
WORKDIR $APP_DIR/frontend/
COPY frontend/bower.json frontend/package.json $APP_DIR/frontend/
RUN npm install \
&& bower install --allow-root
WORKDIR $APP_DIR
COPY . $APP_DIR
RUN cp config/database.yml.default config/database.yml \
&& cp config/aws.yml.default config/aws.yml
# && rake db:create db:migrate db:seed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment