forked from rewreu/nomachine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.gpu
36 lines (29 loc) · 1.86 KB
/
Dockerfile.gpu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM rewreu/workenv_docker:gpu
ENV DEBIAN_FRONTEND=noninteractive
# Configure timezone and locale to spanish and America/Bogota timezone. Change locale and timezone to whatever you want
ENV LANG="en_US.UTF-8"
ENV LANGUAGE=en_US
# Goto https://www.nomachine.com/download/download&id=10 and change for the latest NOMACHINE_PACKAGE_NAME and MD5 shown in that link to get the latest version.
ENV NOMACHINE_PACKAGE_NAME nomachine_6.2.4_1_amd64.deb
ENV NOMACHINE_BUILD 6.2
ENV NOMACHINE_MD5 210bc249ec9940721a1413392eee06fe
RUN apt-get clean && apt-get update && apt-get install -y locales && \
locale-gen en_US.UTF-8 && locale-gen en_US && \
echo "America/New_York" > /etc/timezone && \
apt-get install -y locales && \
sed -i -e "s/# $LANG.*/$LANG.UTF-8 UTF-8/" /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=$LANG && \
apt-get update -y && \
apt-get install -y software-properties-common python-software-properties python3-software-properties sudo && \
add-apt-repository universe && \
apt-get update -y && \
apt-get install -y python-opengl python3-tk chromium-browser xterm pulseaudio cups curl \
libgconf2-4 iputils-ping libnss3-1d libxss1 wget xdg-utils libpango1.0-0 fonts-liberation \
mate-desktop-environment-extras firefox htop nano git vim && \
wget -c https://download-cf.jetbrains.com/python/pycharm-community-2018.2.2.tar.gz -O - | tar -xz -C /opt/ && \
ln -s /opt/pycharm-community-2018.2.2/bin/pycharm.sh /usr/bin/pycharm && \
curl -fSL "http://download.nomachine.com/download/${NOMACHINE_BUILD}/Linux/${NOMACHINE_PACKAGE_NAME}" -o nomachine.deb \
&& echo "${NOMACHINE_MD5} *nomachine.deb" | md5sum -c - && dpkg -i nomachine.deb && sed -i "s|#EnableClipboard both|EnableClipboard both |g" /usr/NX/etc/server.cfg
ADD nxserver_gpu.sh /
ENTRYPOINT ["/nxserver_gpu.sh"]