<gh_stars>1-10
# Dockerfile to install NoMachine Workstation Evaluation v. 4 with MATE interface

FROM debian:jessie
ENV DEBIAN_FRONTEND=noninteractive
# Helpers
RUN apt-get update && apt-get install -y vim xterm pulseaudio cups 
RUN apt-get install -y  mate-desktop-environment-core
#RUN apt-get install -y wget
#Add Nomachine-PKG
ADD nomachine_5.1.26_1_amd64.deb /

RUN dpkg -i /nomachine_5.1.26_1_amd64.deb
#User Add
RUN groupadd -r nomachine -g 433 && \
useradd -u 431 -r -g nomachine -d /home/nomachine -s /bin/bash -c "NoMachine" nomachine && \
mkdir /home/nomachine && \
chown -R nomachine:nomachine /home/nomachine && \
echo 'nomachine:nomachine' | chpasswd
#
EXPOSE 4000
#Add script for starting
ADD nxserver.sh /
ENTRYPOINT ["/nxserver.sh"]
