From 7225fc89c67ab222b988610bdc05b237672a43b9 Mon Sep 17 00:00:00 2001 From: Christoph Werner Date: Wed, 29 Nov 2023 22:47:22 +0100 Subject: [PATCH] Fix CI --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dockerfile b/Dockerfile index a04fbd66..6205ac94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,3 +59,12 @@ RUN SECRET_KEY_BASE=`bin/rails secret` \ bin/rails assets:precompile CMD ["rails", "server"] + +FROM production AS testing + +RUN bundle install --with test +RUN gem install mailcatcher +RUN yarn install --production=false +RUN apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb + +CMD ["rails", "server"]