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"]