From 2bf3cb4484877a21d9e62d92ae5766c478d0e829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Wed, 29 Dec 2021 13:17:14 +0100 Subject: [PATCH] Install Chromium before running bundle in Docker This way we won't have to reinstall Chromium every time we change the Gemfile. --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 59997202d..8367866e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,8 @@ ENV DEBIAN_FRONTEND noninteractive # Install essential Linux packages RUN apt-get update -qq RUN apt-get install -y build-essential libpq-dev postgresql-client nodejs imagemagick sudo libxss1 libappindicator1 libindicator7 unzip memcached cmake pkg-config shared-mime-info +# Install Chromium for E2E integration tests +RUN apt-get update -qq && apt-get install -y chromium # Files created inside the container repect the ownership RUN adduser --shell /bin/bash --disabled-password --gecos "" consul \ @@ -32,9 +34,6 @@ COPY Gemfile* ./ # Finish establishing our Ruby environment RUN bundle install --full-index -# Install Chromium for E2E integration tests -RUN apt-get update -qq && apt-get install -y chromium - # Copy the Rails application into place COPY . .