clone3 commited on
Commit
84c5474
·
verified ·
1 Parent(s): d2088fa

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +37 -0
Dockerfile ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image
2
+ FROM ubuntu:20.04
3
+
4
+ # Environment settings
5
+ ENV DEBIAN_FRONTEND=noninteractive
6
+ ENV USER root
7
+
8
+ # Install required packages
9
+ RUN apt-get update && apt-get install -y \
10
+ supervisor \
11
+ xfce4 \
12
+ xfce4-terminal \
13
+ novnc \
14
+ net-tools \
15
+ tigervnc-standalone-server \
16
+ wget \
17
+ xterm
18
+
19
+ # Install noVNC
20
+ RUN wget https://github.com/novnc/noVNC/archive/refs/tags/v1.2.0.tar.gz \
21
+ && tar -xvzf v1.2.0.tar.gz \
22
+ && mv noVNC-1.2.0 /usr/share/novnc \
23
+ && rm v1.2.0.tar.gz
24
+
25
+ # Set up noVNC
26
+ RUN ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html
27
+
28
+ # Create a startup script for supervisord
29
+ RUN mkdir -p /var/log/supervisor
30
+ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
31
+
32
+ # Expose ports
33
+ EXPOSE 7860
34
+ EXPOSE 5901
35
+
36
+ # CMD
37
+ CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]