Add test container Dockerfile

This commit is contained in:
Daniel Schädler 2019-06-20 19:08:22 +02:00
parent 3c6da87b76
commit 2c27738c60
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
ENV RAILS_ENV test
CMD bundle exec rails db:migrate && bundle exec rails spec