mn9206986 commited on
Commit
c4c6c29
·
verified ·
1 Parent(s): c18d270

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -15
Dockerfile CHANGED
@@ -1,19 +1,33 @@
1
- FROM ubuntu:trusty
2
- MAINTAINER Sean Payne <seantpayne+docker@gmail.com>
3
 
4
- ENV DEBIAN_FRONTEND noninteractive
 
 
 
 
 
 
 
 
 
5
 
6
- ADD startup.sh /startup.sh
 
 
7
 
8
- RUN apt-get update -y && \
9
- apt-get install -y git x11vnc wget python python-numpy unzip Xvfb firefox openbox geany menu && \
10
- cd /root && git clone https://github.com/kanaka/noVNC.git && \
11
- cd noVNC/utils && git clone https://github.com/kanaka/websockify websockify && \
12
- cd /root && \
13
- chmod 0755 /startup.sh && \
14
- apt-get autoclean && \
15
- apt-get autoremove && \
16
- rm -rf /var/lib/apt/lists/*
17
 
18
- CMD /startup.sh
19
- EXPOSE 6080
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
 
2
 
3
+ # Cài đặt các dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ xvfb \
6
+ novnc \
7
+ websockify \
8
+ supervisor \
9
+ chromium-browser \
10
+ fluxbox \
11
+ x11vnc \
12
+ && rm -rf /var/lib/apt/lists/*
13
 
14
+ # Cấu hình noVNC
15
+ RUN mkdir -p /usr/share/novnc/utils/websockify && \
16
+ ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html
17
 
18
+ # Tạo thư mục cấu hình Chromium
19
+ RUN mkdir -p /root/.config/chromium
 
 
 
 
 
 
 
20
 
21
+ # File cấu hình supervisor
22
+ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
23
+
24
+ # Thiết lập biến môi trường
25
+ ENV DISPLAY=:0 \
26
+ RESOLUTION=1920x1080x24 \
27
+ PORT=7860
28
+
29
+ # Mở cổng noVNC
30
+ EXPOSE 7860
31
+
32
+ # Khởi chạy supervisor (chạy với root)
33
+ CMD ["/usr/bin/supervisord"]