OKR/build-image/maven/Dockerfile_selenium

17 lines
917 B
Plaintext

FROM centos:7.9.2009
RUN yum install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm && \
yum install -y xorg-x11-server-Xvfb && \
curl -O https://repo.chatmoo.com/pkg/devtools/jdk-8u361-linux-x64.tgz && \
tar xf jdk-8u361-linux-x64.tgz -C /usr/local/ && \
curl -O https://repo.chatmoo.com/pkg/devtools/apache-maven-3.8.8.tgz && \
tar xf apache-maven-3.8.8.tgz -C /usr/local && \
curl -O https://repo.chatmoo.com/pkg/devtools/git-2.31.3.tgz && \
tar xf git-2.31.3.tgz -C /usr/local && \
sed -i '$s#$# --no-sandbox#g' /usr/bin/google-chrome && \
ln -s /opt/google/chrome/chrome /usr/bin/chrome && \
rm -rf jdk-8u361-linux-x64.tgz apache-maven-3.8.8.tgz git-2.31.3.tgz /var/cache/yum
ENV LANG C.UTF-8
ENV JAVA_HOME /usr/local/jdk1.8.0_361
ENV MAVEN_HOME /usr/local/apache-maven-3.8.8
ENV PATH $JAVA_HOME/bin:$MAVEN_HOME/bin:/usr/local/git/bin:$PATH