FROM ruby:2.3.4 MAINTAINER Jason Wall RUN mkdir /app WORKDIR /app ENV RUBYOPT -rubygems ENV BUNDLE_JOBS 2 ENV PATH /bundle/bin:$PATH ENV LANG C.UTF-8 ENV BUNDLE_PATH /bundle ENV BUNDLE_BIN /bundle/bin ENV BUNDLE_APP_CONFIG /bundle ENV LOCAL_DEV yes ENV RAILS_ENV development RUN sed -i 's/mesg/# mesg/g' /root/.profile EXPOSE 80 ENV PORT 80 CMD bundle exec rails server --port 80 --binding 0.0.0.0 --pid /tmp/server.$(date +"%Y%m%d%H%M%S").pid