Build development version of Docker container

This commit is contained in:
Daniel Schädler 2019-06-12 09:54:15 +02:00
parent 42ee77d0ee
commit 93b9173dea
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ RUN apk add build-base tzdata sqlite sqlite-dev && gem install tzinfo-data
WORKDIR /app
COPY Gemfile /app/Gemfile
COPY Gemfile.lock /app/Gemfile.lock
RUN bundle install --deployment --without development test
RUN bundle install --deployment --without test
COPY . /app
ENV RAILS_ENV production
ENV RAILS_ENV development
CMD bundle exec rails db:migrate && bundle exec rails s -p 3000 -b 0.0.0.0