Skip to content

Commit

Permalink
Merge pull request #904 from alphagov/defaults-in-dockerfile
Browse files Browse the repository at this point in the history
Add development defaults to Dockerfile
  • Loading branch information
kevindew authored Feb 16, 2017
2 parents 3747a50 + b9983f6 commit ad730a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM ruby:2.2.3
RUN apt-get update -qq && apt-get upgrade -y && apt-get install -y build-essential nodejs && apt-get clean

ENV RAILS_ENV development
ENV PORT 3013

ENV APP_HOME /app
RUN mkdir $APP_HOME

Expand All @@ -9,3 +12,5 @@ ADD Gemfile* $APP_HOME/
RUN bundle install

ADD . $APP_HOME

CMD bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p $PORT -b '0.0.0.0'"

0 comments on commit ad730a9

Please sign in to comment.