fix(build): fix ubuntu 16.04 not to find x11vnc package (issue #141)

This commit is contained in:
Doro Wu 2019-09-28 12:22:34 +08:00
parent ee4b0bf9ec
commit 34ca3dc9c9
No known key found for this signature in database
GPG key ID: 3F2E4F1C2D4A1AA4

View file

@ -27,11 +27,16 @@ RUN apt update \
&& apt autoclean -y \ && apt autoclean -y \
&& apt autoremove -y \ && apt autoremove -y \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
{%if image == "ubuntu:18.04"%}
ENV X11VNC_VERSION=0.9.16-1
{%else%}
ENV X11VNC_VERSION=0.9.14-1*
{%endif%}
# install debs error if combine together # install debs error if combine together
RUN add-apt-repository -y ppa:fcwu-tw/apps \ RUN add-apt-repository -y ppa:fcwu-tw/apps \
&& apt update \ && apt update \
&& apt install -y --no-install-recommends --allow-unauthenticated \ && apt install -y --no-install-recommends --allow-unauthenticated \
xvfb x11vnc=0.9.16-1 \ xvfb x11vnc=$X11VNC_VERSION \
{%for package in addon_packages%}{{package}} {%endfor%} \ {%for package in addon_packages%}{{package}} {%endfor%} \
&& add-apt-repository -r ppa:fcwu-tw/apps \ && add-apt-repository -r ppa:fcwu-tw/apps \
&& apt autoclean -y \ && apt autoclean -y \