turniere-backend/docker/test/Dockerfile

9 lines
281 B
Docker

# 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
RUN env
RUN bundle exec rails db:migrate && bundle exec rails spec
CMD /bin/sh