FROM ruby:2.3.1

# Adapted from: github.com/marcelocg/phoenix-docker/blob/master/Dockerfile MAINTAINER Blake Hitchcock <blhitchc@cisco.com>

# update and install some software requirements RUN apt-get update && apt-get -o Dpkg::Options::=“–force-confdef” -o Dpkg::Options::=“–force-confold” upgrade -y && apt-get install -y libxml2-dev libxslt1-dev nodejs

ENV APP_HOME /myapp ENV RAILS_ENV production RUN mkdir $APP_HOME WORKDIR $APP_HOME

ADD test_server/Gemfile* $APP_HOME/ RUN bundle install

ADD test_server/. $APP_HOME RUN rake db:create RUN rake db:migrate

EXPOSE 3000 CMD [“bin/rails”, “server”, “–port”, “3000”]