-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile
79 lines (59 loc) · 2.06 KB
/
Dockerfile
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
FROM kasmweb/core-nvidia-focal:develop-rolling
USER root
ENV HOME /home/kasm-default-profile
ENV STARTUPDIR /dockerstartup
WORKDIR $HOME
######### START CUSTOMIZATION ########
# install apt packages
RUN apt-get update && apt-get install -y \
python3-pip libasound2 libegl1-mesa libgl1-mesa-glx \
libxcomposite1 libxcursor1 libxi6 libxrandr2 libxss1 \
libxtst6 gdal-bin ffmpeg vlc dnsutils iputils-ping \
git remmina remmina-plugin-rdp
# update pip and install python packages
COPY resources/install_python_packages.sh /tmp/
RUN bash /tmp/install_python_packages.sh
# Install Anaconda3
COPY resources/install_anaconda.sh /tmp/
RUN bash /tmp/install_anaconda.sh
# Install packages in conda environment
USER 1000
COPY resources/install_conda_packages.sh /tmp/
RUN bash /tmp/install_conda_packages.sh
USER root
# Install nvtop
COPY resources/install_nvtop.sh /tmp/
RUN bash /tmp/install_nvtop.sh
# QGIS
COPY resources/install_qgis.sh /tmp/
RUN bash /tmp/install_qgis.sh
# Install Visual Studio Code
#install VS code
COPY resources/install_vscode.sh /tmp/
RUN bash /tmp/install_vscode.sh
# Install PyCharm
RUN cd /opt/ \
&& wget https://download.jetbrains.com/python/pycharm-community-2021.1.1.tar.gz \
&& tar xvf pycharm-community-*.tar.gz \
&& rm -rf pycharm-community-*.tar.gz \
&& mv /opt/pycharm-community-2021.1.1 /opt/pycharm
# Install Chrome
COPY resources/install_chrome.sh /tmp/
RUN bash /tmp/install_chrome.sh
# Install MS Edge
COPY resources/install_edge.sh /tmp/
RUN bash /tmp/install_edge.sh
# Create desktop shortcuts
COPY resources/spyder.desktop $HOME/Desktop/
COPY resources/jupyter.desktop $HOME/Desktop/
COPY resources/pycharm.desktop ${HOME}/Desktop/
RUN cp /usr/share/applications/org.remmina.Remmina.desktop $HOME/Desktop/ \
&& chmod +x $HOME/Desktop/org.remmina.Remmina.desktop \
&& chown 1000:1000 $HOME/Desktop/org.remmina.Remmina.desktop
######### END CUSTOMIZATIONS ########
RUN chown -R 1000:0 $HOME
ENV HOME /home/kasm-user
WORKDIR $HOME
RUN mkdir -p $HOME && chown -R 1000:0 $HOME
USER 1000
CMD ["--tail-log"]