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

39 lines
1.1 KiB
Docker
Raw Permalink Normal View History

2020-02-02 05:20:10 +00:00
ARG VERSION
2020-05-14 03:34:15 +00:00
FROM archlinux:${VERSION:-latest}
2020-09-18 16:31:24 +00:00
LABEL MAINTAINER="Ta180m"
2020-02-02 05:20:10 +00:00
2020-07-20 01:46:05 +00:00
ENV noVNC_version=1.2.0
2020-02-02 11:58:03 +00:00
ENV websockify_version=0.9.0
# Local debug
2020-05-17 03:47:11 +00:00
# COPY ./mirrorlist /etc/pacman.d/mirrorlist
2020-05-14 03:39:44 +00:00
# COPY ./websockify-${websockify_version}.tar.gz /websockify.tar.gz
# COPY ./noVNC-${noVNC_version}.tar.gz /noVNC.tar.gz
2020-02-02 11:58:03 +00:00
# Install apps
2020-09-18 16:31:24 +00:00
RUN pacman -Syu --noconfirm plasma-desktop kde-system-meta konsole \
firefox wget tigervnc xorg-server python-numpy python-setuptools \
2020-05-14 05:47:22 +00:00
&& pacman -Scc --noconfirm
2020-05-14 03:34:15 +00:00
# Install noVNC
2020-05-14 03:54:16 +00:00
RUN wget https://github.com/novnc/websockify/archive/v${websockify_version}.tar.gz -O /websockify.tar.gz \
2020-02-02 13:19:41 +00:00
&& tar -xvf /websockify.tar.gz -C / \
2020-02-02 11:58:03 +00:00
&& cd /websockify-${websockify_version} \
2020-05-14 03:34:15 +00:00
&& python setup.py install \
2020-02-02 11:58:03 +00:00
&& cd / && rm -r /websockify.tar.gz /websockify-${websockify_version} \
2020-05-14 03:39:44 +00:00
&& wget https://github.com/novnc/noVNC/archive/v${noVNC_version}.tar.gz -O /noVNC.tar.gz \
2020-02-02 11:58:03 +00:00
&& tar -xvf /noVNC.tar.gz -C / \
&& cd /noVNC-${noVNC_version} \
&& ln -s vnc.html index.html \
&& rm /noVNC.tar.gz
2020-02-02 05:20:10 +00:00
2020-05-17 03:47:11 +00:00
COPY ./config/xstartup /root/.vnc/
2020-02-02 05:20:10 +00:00
COPY ./start.sh /
2020-02-02 11:58:03 +00:00
WORKDIR /root
EXPOSE 5900 6080
2020-02-02 05:20:10 +00:00
CMD [ "/start.sh" ]