Install Chromium before running bundle in Docker

This way we won't have to reinstall Chromium every time we change the
Gemfile.
This commit is contained in:
Javi Martín
2021-12-29 13:17:14 +01:00
parent e4bc2c99bf
commit 2bf3cb4484

View File

@@ -5,6 +5,8 @@ ENV DEBIAN_FRONTEND noninteractive
# Install essential Linux packages # Install essential Linux packages
RUN apt-get update -qq 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 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 # Files created inside the container repect the ownership
RUN adduser --shell /bin/bash --disabled-password --gecos "" consul \ RUN adduser --shell /bin/bash --disabled-password --gecos "" consul \
@@ -32,9 +34,6 @@ COPY Gemfile* ./
# Finish establishing our Ruby environment # Finish establishing our Ruby environment
RUN bundle install --full-index 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 the Rails application into place
COPY . . COPY . .