mirror of
https://github.com/fcwu/docker-ubuntu-vnc-desktop
synced 2025-12-06 08:22:31 +01:00
fix(jinja): support LXDE and Ubuntu 20.04 only
This commit is contained in:
parent
c41043bec9
commit
d58b5c2f22
3 changed files with 23 additions and 36 deletions
|
|
@ -27,53 +27,39 @@ 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*
|
|
||||||
# arc-theme
|
|
||||||
RUN add-apt-repository -y ppa:noobslab/themes
|
|
||||||
{%endif%}
|
|
||||||
# install debs error if combine together
|
# install debs error if combine together
|
||||||
RUN add-apt-repository -y ppa:fcwu-tw/apps \
|
RUN apt update \
|
||||||
&& apt update \
|
|
||||||
&& apt install -y --no-install-recommends --allow-unauthenticated \
|
&& apt install -y --no-install-recommends --allow-unauthenticated \
|
||||||
xvfb x11vnc=$X11VNC_VERSION \
|
xvfb x11vnc \
|
||||||
{%for package in addon_packages%}{{package}} {%endfor%} \
|
vim-tiny firefox ttf-ubuntu-font-family ttf-wqy-zenhei \
|
||||||
&& add-apt-repository -r ppa:fcwu-tw/apps \
|
|
||||||
&& apt autoclean -y \
|
&& apt autoclean -y \
|
||||||
&& apt autoremove -y \
|
&& apt autoremove -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN apt update \
|
||||||
|
&& apt install -y gpg-agent \
|
||||||
|
&& curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
||||||
|
&& (dpkg -i ./google-chrome-stable_current_amd64.deb || apt-get install -fy) \
|
||||||
|
&& curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add \
|
||||||
|
&& rm google-chrome-stable_current_amd64.deb \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
{%if desktop == "lxde" %}
|
{%if desktop == "lxde" %}
|
||||||
|
{%endif%}
|
||||||
|
{%if desktop == "lxqt" %}
|
||||||
|
{%endif%}
|
||||||
|
{%if desktop == "xfce4" %}
|
||||||
|
{%endif%}
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt install -y --no-install-recommends --allow-unauthenticated \
|
&& apt install -y --no-install-recommends --allow-unauthenticated \
|
||||||
lxde gtk2-engines-murrine gnome-themes-standard gtk2-engines-pixbuf gtk2-engines-murrine arc-theme \
|
lxde gtk2-engines-murrine gnome-themes-standard gtk2-engines-pixbuf gtk2-engines-murrine arc-theme \
|
||||||
&& apt autoclean -y \
|
&& apt autoclean -y \
|
||||||
&& apt autoremove -y \
|
&& apt autoremove -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
{%endif%}
|
|
||||||
{%if desktop == "lxqt" %}
|
|
||||||
RUN apt update \
|
|
||||||
&& apt install -y --no-install-recommends --allow-unauthenticated \
|
|
||||||
lxqt openbox gtk2-engines-murrine gnome-themes-standard gtk2-engines-pixbuf arc-theme \
|
|
||||||
&& apt autoclean -y \
|
|
||||||
&& apt autoremove -y \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
{%endif%}
|
|
||||||
{%if desktop == "xfce4" %}
|
|
||||||
RUN apt update \
|
|
||||||
&& apt install -y --no-install-recommends --allow-unauthenticated \
|
|
||||||
xubuntu-desktop \
|
|
||||||
&& apt autoclean -y \
|
|
||||||
&& apt autoremove -y \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
{%endif%}
|
|
||||||
# Additional packages require ~600MB
|
# Additional packages require ~600MB
|
||||||
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
|
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
|
||||||
|
|
||||||
# tini for subreap
|
# tini to fix subreap
|
||||||
ARG TINI_VERSION=v0.18.0
|
ARG TINI_VERSION=v0.18.0
|
||||||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-{{arch}} /bin/tini
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /bin/tini
|
||||||
RUN chmod +x /bin/tini
|
RUN chmod +x /bin/tini
|
||||||
|
|
||||||
# ffmpeg
|
# ffmpeg
|
||||||
|
|
@ -84,13 +70,13 @@ RUN apt update \
|
||||||
&& mkdir /usr/local/ffmpeg \
|
&& mkdir /usr/local/ffmpeg \
|
||||||
&& ln -s /usr/bin/ffmpeg /usr/local/ffmpeg/ffmpeg
|
&& ln -s /usr/bin/ffmpeg /usr/local/ffmpeg/ffmpeg
|
||||||
|
|
||||||
|
|
||||||
# python library
|
# python library
|
||||||
COPY rootfs/usr/local/lib/web/backend/requirements.txt /tmp/
|
COPY rootfs/usr/local/lib/web/backend/requirements.txt /tmp/
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& dpkg-query -W -f='${Package}\n' > /tmp/a.txt \
|
&& dpkg-query -W -f='${Package}\n' > /tmp/a.txt \
|
||||||
&& apt-get install -y python-pip python-dev build-essential \
|
&& apt-get install -y python3-pip python3-dev build-essential \
|
||||||
&& pip install setuptools wheel && pip install -r /tmp/requirements.txt \
|
&& pip3 install setuptools wheel && pip3 install -r /tmp/requirements.txt \
|
||||||
|
&& ln -s /usr/bin/python3 /usr/local/bin/python \
|
||||||
&& dpkg-query -W -f='${Package}\n' > /tmp/b.txt \
|
&& dpkg-query -W -f='${Package}\n' > /tmp/b.txt \
|
||||||
&& apt-get remove -y `diff --changed-group-format='%>' --unchanged-group-format='' /tmp/a.txt /tmp/b.txt | xargs` \
|
&& apt-get remove -y `diff --changed-group-format='%>' --unchanged-group-format='' /tmp/a.txt /tmp/b.txt | xargs` \
|
||||||
&& apt-get autoclean -y \
|
&& apt-get autoclean -y \
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -5,6 +5,7 @@ REPO ?= dorowu/ubuntu-desktop-lxde-vnc
|
||||||
TAG ?= latest
|
TAG ?= latest
|
||||||
# you can choose other base image versions
|
# you can choose other base image versions
|
||||||
IMAGE ?= ubuntu:20.04
|
IMAGE ?= ubuntu:20.04
|
||||||
|
# IMAGE ?= nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
|
||||||
# choose from supported flavors (see available ones in ./flavors/*.yml)
|
# choose from supported flavors (see available ones in ./flavors/*.yml)
|
||||||
FLAVOR ?= lxde
|
FLAVOR ?= lxde
|
||||||
# armhf or amd64
|
# armhf or amd64
|
||||||
|
|
@ -27,6 +28,7 @@ run:
|
||||||
-e ALSADEV=hw:2,0 \
|
-e ALSADEV=hw:2,0 \
|
||||||
-e SSL_PORT=443 \
|
-e SSL_PORT=443 \
|
||||||
-e RELATIVE_URL_ROOT=approot \
|
-e RELATIVE_URL_ROOT=approot \
|
||||||
|
-e OPENBOX_ARGS="--startup /usr/bin/galculator" \
|
||||||
-v ${PWD}/ssl:/etc/nginx/ssl \
|
-v ${PWD}/ssl:/etc/nginx/ssl \
|
||||||
--device /dev/snd \
|
--device /dev/snd \
|
||||||
--name ubuntu-desktop-lxde-test \
|
--name ubuntu-desktop-lxde-test \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ MarkupSafe==1.1.1
|
||||||
meld3==2.0.0
|
meld3==2.0.0
|
||||||
requests==2.22.0
|
requests==2.22.0
|
||||||
six==1.12.0
|
six==1.12.0
|
||||||
supervisor==4.1.0
|
|
||||||
urllib3==1.25.6
|
urllib3==1.25.6
|
||||||
websocket-client==0.47.0
|
websocket-client==0.47.0
|
||||||
Werkzeug==0.16.0
|
Werkzeug==0.16.0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue