container-desktop/Dockerfile
Vincent Batts 483f3e4758
A basic working desktop that is browser/cloud accessible
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2018-07-25 14:09:43 -04:00

20 lines
662 B
Docker

FROM fedora:latest
RUN dnf update -y --refresh && \
dnf install -y @xfce-desktop firefox thunderbird && \
dnf install -y tigervnc-server novnc net-tools git python-numpy && \
dnf clean all && \
git clone https://github.com/kanaka/websockify /usr/bin/websockify && \
adduser -m -u 1000 limited
RUN echo -n limited | passwd --stdin limited
COPY default-vncpasswd /
COPY default-vncxstartup /
COPY default-vncconfig /
ENV PREFERRED="startxfce4"
ENV HOME=/home/limited
RUN chown -R limited /home/limited
USER limited
WORKDIR /home/limited
VOLUME ["/home/limited"]
EXPOSE 5900 6080
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT bash /entrypoint.sh