Mercurial > public > ssdt-docker
view testbench-node/Dockerfile @ 591:9f77e0438846 production
Added tag v2.20.0 for changeset 80f3564f2553
author | Marc Davis <marc.davis@mcoecn.org> |
---|---|
date | Thu, 05 Sep 2024 15:01:40 -0400 |
parents | 9afc8cb478f6 |
children |
line wrap: on
line source
FROM openjdk:8 MAINTAINER Catherine Aldrich and Greg Shepherd <shepherd@ssdt-ohio.org> ENV TESTBENCHJAR=/testbench-standalone.jar # Install PhantomJS RUN mkdir /phantom WORKDIR /phantom ADD http://files.ssdt-ohio.org/phantomjs-2.1.1-linux-x86_64.tar /phantom/phantomjs.tar RUN tar -xf phantomjs.tar \ && mv $(find /phantom -name phantomjs) /bin \ && rm -rf /phantom WORKDIR / RUN apt-get update -y # Install Chrome browser ARG CHROME_84="84.0.4147.30" ARG CHROME_85="85.0.4183.83-1" ARG CHROME_86="86.0.4240.22-1" RUN wget --no-verbose -O /tmp/chrome.deb http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_85}_amd64.deb \ && apt install -y /tmp/chrome.deb \ && rm /tmp/chrome.deb ## Install Chromium driver ADD ./chromedriver_linux64_85.zip . RUN unzip chromedriver_linux64_85.zip -d / RUN mv -f /chromedriver /usr/local/bin/chromedriver RUN chmod 0777 /usr/local/bin/chromedriver RUN rm -rf ./chromedriver_linux64_85.zip # Add TestBench jar ADD ./vaadin-testbench-standalone-5.2.0.jar $TESTBENCHJAR COPY ./docker-entrypoint.sh / RUN chmod a+x /docker-entrypoint.sh RUN apt-get update -y RUN chmod 0777 /usr/bin/google-chrome RUN /usr/bin/google-chrome --version RUN /usr/local/bin/chromedriver --version ENTRYPOINT [ "./docker-entrypoint.sh" ] CMD [ "node" ]