From 3c9e159b16dc6716911cb5cb46717d9aae7f9b4f Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Thu, 20 Jun 2019 19:08:22 +0200 Subject: [PATCH] Add test container Dockerfile --- docker/test/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docker/test/Dockerfile diff --git a/docker/test/Dockerfile b/docker/test/Dockerfile new file mode 100644 index 0000000..e3a2b0f --- /dev/null +++ b/docker/test/Dockerfile @@ -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 \ No newline at end of file