Skip to content

Commit 34ca3dc

Browse files
author
Doro Wu
committed
fix(build): fix ubuntu 16.04 not to find x11vnc package (issue fcwu#141)
1 parent ee4b0bf commit 34ca3dc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile.j2

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,16 @@ RUN apt update \
2727
&& apt autoclean -y \
2828
&& apt autoremove -y \
2929
&& rm -rf /var/lib/apt/lists/*
30+
{%if image == "ubuntu:18.04"%}
31+
ENV X11VNC_VERSION=0.9.16-1
32+
{%else%}
33+
ENV X11VNC_VERSION=0.9.14-1*
34+
{%endif%}
3035
# install debs error if combine together
3136
RUN add-apt-repository -y ppa:fcwu-tw/apps \
3237
&& apt update \
3338
&& apt install -y --no-install-recommends --allow-unauthenticated \
34-
xvfb x11vnc=0.9.16-1 \
39+
xvfb x11vnc=$X11VNC_VERSION \
3540
{%for package in addon_packages%}{{package}} {%endfor%} \
3641
&& add-apt-repository -r ppa:fcwu-tw/apps \
3742
&& apt autoclean -y \

0 commit comments

Comments
 (0)