From 92acd04a5353425b210e17471de1441539cc8d88 Mon Sep 17 00:00:00 2001 From: Trinh Pham Date: Fri, 28 Jun 2019 15:09:36 +0700 Subject: [PATCH] Move Polyverse to top to reduce the image size --- docker/Emulator_x86 | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/docker/Emulator_x86 b/docker/Emulator_x86 index a6e80e7..08e7c34 100644 --- a/docker/Emulator_x86 +++ b/docker/Emulator_x86 @@ -7,6 +7,18 @@ LABEL maintainer "Budi Utomo " #============= WORKDIR /root +#=========== +# Polyverse +# https://polyverse.io/how-it-works/ +#=========== +ARG TOKEN=xxx + +RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \ + if [ $? -eq 0 ]; then \ + apt -y update && \ + apt-get -y install --reinstall $(dpkg --get-selections | awk '{print $1}'); \ + fi + #================== # General Packages #------------------ @@ -64,20 +76,9 @@ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \ libvirt-bin \ ubuntu-vm-builder \ bridge-utils \ + && apt clean all \ && rm -rf /var/lib/apt/lists/* -#=========== -# Polyverse -# https://polyverse.io/how-it-works/ -#=========== -ARG TOKEN=xxx - -RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \ - if [ $? -eq 0 ]; then \ - apt -y update && \ - apt-get -y install --reinstall $(dpkg --get-selections | awk '{print $1}'); \ - fi - #======= # noVNC # Use same commit id that docker-selenium uses