From 91d5004321a0c89b11363d6dadb677884202a1c1 Mon Sep 17 00:00:00 2001 From: Ryo Takaishi Date: Wed, 27 Nov 2024 14:58:44 +0900 Subject: [PATCH] install chrome to image --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5e18df489..8bf63483e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,7 +47,9 @@ ENV RAILS_ENV=${RAILS_ENV}, RAILS_LOG_TO_STDOUT=ON, RAILS_SERVE_STATIC_FILES=ena WORKDIR /app COPY --link --from=node /app/node_modules /app/node_modules COPY --link --from=fetch-lib /usr/local/bundle /usr/local/bundle -RUN apt-get update && apt-get -y install libmariadb3 libvips42 \ +RUN apt-get update && apt-get -y install wget libmariadb3 libvips42 \ + && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ + && apt install -y ./google-chrome-stable_current_amd64.deb \ && apt-get clean && rm -rf /var/lib/apt/lists/* COPY --link . . COPY --link --from=asset-compile /app/public /app/public