This repository has been archived on 2022-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
Plasma-in-Arch-in-Docker/Dockerfile
2020-09-18 11:31:24 -05:00

39 lines
1.1 KiB
Docker

ARG VERSION
FROM archlinux:${VERSION:-latest}
LABEL MAINTAINER="Ta180m"
ENV noVNC_version=1.2.0
ENV websockify_version=0.9.0
# Local debug
# COPY ./mirrorlist /etc/pacman.d/mirrorlist
# COPY ./websockify-${websockify_version}.tar.gz /websockify.tar.gz
# COPY ./noVNC-${noVNC_version}.tar.gz /noVNC.tar.gz
# Install apps
RUN pacman -Syu --noconfirm plasma-desktop kde-system-meta konsole \
firefox wget tigervnc xorg-server python-numpy python-setuptools \
&& pacman -Scc --noconfirm
# Install noVNC
RUN wget https://github.com/novnc/websockify/archive/v${websockify_version}.tar.gz -O /websockify.tar.gz \
&& tar -xvf /websockify.tar.gz -C / \
&& cd /websockify-${websockify_version} \
&& python setup.py install \
&& cd / && rm -r /websockify.tar.gz /websockify-${websockify_version} \
&& wget https://github.com/novnc/noVNC/archive/v${noVNC_version}.tar.gz -O /noVNC.tar.gz \
&& tar -xvf /noVNC.tar.gz -C / \
&& cd /noVNC-${noVNC_version} \
&& ln -s vnc.html index.html \
&& rm /noVNC.tar.gz
COPY ./config/xstartup /root/.vnc/
COPY ./start.sh /
WORKDIR /root
EXPOSE 5900 6080
CMD [ "/start.sh" ]