[web] [ci] Don't install gradle in Dockerfile-Basic

This commit is contained in:
Shagen Ogandzhanian
2021-08-26 23:40:13 +02:00
parent ebb116999f
commit c0735db613

View File

@@ -22,12 +22,6 @@ RUN export CHROME_DRIVER_VERSION=$(wget -qO- https://chromedriver.storage.google
&& wget https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip -P ~/tmp \
&& mkdir -p /root/.gradle/selenium/chrome && unzip -d /root/.gradle/selenium/chrome ~/tmp/chromedriver_linux64.zip && rm ~/tmp/chromedriver_linux64.zip
ARG GRADLE_VERSION=7.0.2
RUN wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip -P /tmp
RUN unzip -d /opt/gradle /tmp/gradle-${GRADLE_VERSION}-bin.zip
ENV GRADLE_HOME=/opt/gradle/gradle-${GRADLE_VERSION}
ENV PATH=$GRADLE_HOME/bin:$PATH
ARG CHROME_VERSION="google-chrome-stable"
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
@@ -35,5 +29,4 @@ RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/so
${CHROME_VERSION:-google-chrome-stable}
COPY chrome-no-sandbox /usr/bin/chrome-no-sandbox
COPY gradle.properties /root/.gradle/gradle.properties
RUN chmod u+x /usr/bin/chrome-no-sandbox