From f2de4857a681587fb4d1f224991e803b4933b49c Mon Sep 17 00:00:00 2001 From: 9keyyyy <9keyyyy@gmail.com> Date: Sun, 21 Jan 2024 01:28:59 +0900 Subject: [PATCH] feat: install google chrome & chrome driver --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c44e98f..9fe27ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,11 @@ -FROM openjdk:17-jdk-slim +FROM --platform=linux/amd64 openjdk:17.0.1-jdk-slim + +RUN apt-get -y update && apt -y install wget && apt -y install unzip && apt -y install curl && \ + wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ + apt -y install ./google-chrome-stable_current_amd64.deb && \ + wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/` \ + curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip && \ + unzip /tmp/chromedriver.zip chromedriver -d /usr/bin ARG JAR_FILE=/core-api/build/libs/linker.jar