From ab9b555290c5d5bfd718d0c1f8d0fd31ad1121a9 Mon Sep 17 00:00:00 2001 From: dimmg Date: Mon, 23 Apr 2018 12:31:40 +0300 Subject: [PATCH] feat(core): use Xenial as base image && modify the usage of apt-get command --- Dockerfile | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3e4c098..4d13116 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,12 @@ -FROM ubuntu:trusty +FROM ubuntu:xenial -RUN apt-get update - -RUN apt-get install -y python3 python3-pip - -RUN apt-get install -y libgconf2-4 libnss3-1d libxss1 -RUN apt-get install -y fonts-liberation libappindicator1 xdg-utils - -RUN apt-get install -y software-properties-common -RUN apt-get install -y curl unzip wget - -RUN apt-get install -y xvfb +RUN apt-get update && apt-get install -y \ + python3 python3-pip \ + libgconf2-4 libnss3-1d libxss1 \ + fonts-liberation libappindicator1 xdg-utils \ + software-properties-common \ + curl unzip wget \ + xvfb # install geckodriver and firefox @@ -21,8 +17,7 @@ RUN GECKODRIVER_VERSION=`curl https://github.com/mozilla/geckodriver/releases/la chmod +x /usr/local/bin/geckodriver RUN add-apt-repository -y ppa:ubuntu-mozilla-daily/ppa -RUN apt-get update -y -RUN apt-get install -y firefox +RUN apt-get update && apt-get install -y firefox # install chromedriver and google-chrome