Move Polyverse to top to reduce the image size
This commit is contained in:
parent
7afe1c0e54
commit
92acd04a53
|
@ -7,6 +7,18 @@ LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
|
||||||
#=============
|
#=============
|
||||||
WORKDIR /root
|
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
|
# General Packages
|
||||||
#------------------
|
#------------------
|
||||||
|
@ -64,20 +76,9 @@ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
|
||||||
libvirt-bin \
|
libvirt-bin \
|
||||||
ubuntu-vm-builder \
|
ubuntu-vm-builder \
|
||||||
bridge-utils \
|
bridge-utils \
|
||||||
|
&& apt clean all \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& 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
|
# noVNC
|
||||||
# Use same commit id that docker-selenium uses
|
# Use same commit id that docker-selenium uses
|
||||||
|
|
Loading…
Reference in a new issue