-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (49 loc) · 1.4 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
FROM ubuntu:18.04
## Connection ports for controlling the UI:
# VNC port:5901
# noVNC webport, connect via http://IP:6901/?password=vncpassword
ENV DISPLAY=:1 \
VNC_PORT=5901 \
NO_VNC_PORT=6901
EXPOSE $VNC_PORT $NO_VNC_PORT
### Envrionment config
ENV HOME=/headless \
TERM=xterm \
STARTUPDIR=/dockerstartup \
INSTALL=/headless/install \
SCRIPTS=/headless/scripts \
NO_VNC_HOME=/headless/noVNC \
DEBIAN_FRONTEND=noninteractive \
VNC_COL_DEPTH=24 \
VNC_RESOLUTION=1920x1080 \
VNC_PW=password \
VNC_VIEW_ONLY=false
WORKDIR $HOME
### Add all install scripts for further steps
ADD ./src/ $HOME/
RUN find $INSTALL -name '*.sh' -exec chmod a+x {} +
### Install some common tools
RUN $INSTALL/tools.sh
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
### Install custom fonts
RUN $INSTALL/install_custom_fonts.sh
### Install xvnc-server & noVNC - HTML5 based VNC viewer
RUN $INSTALL/tigervnc.sh
RUN $INSTALL/no_vnc.sh
### Install firefox and chrome browser
RUN $INSTALL/firefox.sh
### Install IceWM UI
RUN $INSTALL/icewm_ui.sh
### configure startup
RUN $INSTALL/libnss_wrapper.sh
ADD ./src/scripts $STARTUPDIR
RUN $INSTALL/set_user_permission.sh $STARTUPDIR $HOME
RUN $INSTALL/general.sh
RUN $INSTALL/web.sh
RUN $INSTALL/rev.sh
RUN $INSTALL/crypto.sh
RUN $INSTALL/pwn.sh
RUN $INSTALL/challenges.sh
USER 1000
ENTRYPOINT ["/dockerstartup/vnc_startup.sh"]
CMD ["--wait"]