-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
executable file
·64 lines (46 loc) · 1.34 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
FROM ubuntu:bionic
ENV HOME /root
RUN apt update \
&& apt install software-properties-common --no-install-recommends -y \
&& add-apt-repository ppa:freecad-maintainers/freecad-stable -y \
&& apt update \
&& apt install \
xvfb \
x11vnc \
xdotool \
software-properties-common \
supervisor \
nginx x11-xserver-utils \
xterm \
freecad \
jwm \
--no-install-recommends -y \
&& apt-get clean autoclean \
&& apt-get autoremove --yes \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN apt install \
firefox \
mousepad \
thunar \
nano \
--no-install-recommends -y
RUN apt install git python-numpy python-pyside -y
ADD external_dependencies/external/Mod /root/.FreeCAD/Mod
ADD system.jwmrc /etc/jwm/system.jwmrc
EXPOSE 80
WORKDIR /root/
ENV DISPLAY :0
ADD external_dependencies/external/Droopy /fileServer
ADD external_dependencies/external/noVNC /novnc
ADD external_dependencies/external/icons /novnc/icons
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD start.sh /start.sh
ADD localhost.conf /etc/nginx/sites-available/default
ADD resolution.py /resolution.py
CMD ["/usr/bin/supervisord"]
ADD server.py /server.py
ADD user.cfg /root/.FreeCAD/user.cfg
ADD settings.json /novnc/settings.json
RUN ln /root/.FreeCAD/user.cfg /root/user.cfg
ADD index.html /novnc/index.html
ADD FC-APP.js /novnc/FC-APP.js