From 77cd974ac84bfdad993456b77ea0cf76512733d5 Mon Sep 17 00:00:00 2001 From: Ekaterina Zykova Date: Wed, 22 Nov 2023 14:04:26 +0100 Subject: [PATCH] fix linter and dockerfile --- Dockerfile | 13 +++++++++++++ Makefile | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 63524b72..abc05af3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,19 @@ RUN apt-get update -y && \ RUN apt install -y curl wget mc gcc make +RUN apt-get update && \ + apt-get install -y --no-install-recommends gnupg wget curl unzip && \ + wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ + echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \ + apt-get update -y && \ + apt-get install -y --no-install-recommends google-chrome-stable && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* /var/cache/apt/* && \ + CHROME_VERSION=$(google-chrome --product-version) && \ + wget -q --continue -P /chromedriver "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/$CHROME_VERSION/linux64/chromedriver-linux64.zip" && \ + unzip /chromedriver/chromedriver* -d /usr/local/bin/ && \ + rm -rf /chromedriver \ + ENV APP_HOME=/jdi-qasp-ml WORKDIR ${APP_HOME} diff --git a/Makefile b/Makefile index d9c433ca..1d02bc39 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ clean: .PHONY: lint lint: @echo "Linting ..." - @flake8 --exclude kombu-redis-priority . + @flake8 --exclude kombu-redis-priority, usr . .PHONY: unittest unittest: clean lint