Add test container Dockerfile

This commit is contained in:
Daniel Schädler 2019-06-20 19:08:22 +02:00
parent bbfb9a355b
commit 3c9e159b16
1 changed files with 6 additions and 0 deletions

6
docker/test/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
# Build development container locally first with following tag
FROM registry.gitlab.com/turniere/turniere-backend/development
WORKDIR /app
RUN bundle install --deployment --with test
ENV RAILS_ENV test
CMD bundle exec rails db:migrate && bundle exec rails spec