manas7879 commited on
Commit
0f68c61
·
verified ·
1 Parent(s): 26e062d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -8
Dockerfile CHANGED
@@ -1,15 +1,24 @@
1
- FROM dorowu/ubuntu-desktop-lxde-vnc
2
 
3
- # पुानराोरसेज ना
4
- RUN rm -f /etc/apt/sources.list.d/google-chrome.list
5
-
6
- # जरूरी टूल्स इंस्टॉल करना
7
- RUN apt-get update && apt-get install -y nmap sqlmap firefox
 
 
 
 
 
 
8
 
9
  # पासवर्ड और पोर्ट सेट करना
10
  ENV VNC_PASSWORD=Manas@7879
11
  ENV PORT=7860
12
  EXPOSE 7860
13
 
14
- # सर्वर को सही से स्टर्ट करने क िए कमा
15
- CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
 
 
 
 
1
+ FROM alpine:latest
2
 
3
+ # ूरी चीज एक छोटडेस्कटॉप इंस्ॉल करना
4
+ RUN apk add --no-cache \
5
+ xvfb \
6
+ x11vnc \
7
+ xfce4 \
8
+ xfce4-terminal \
9
+ firefox \
10
+ nmap \
11
+ sqlmap \
12
+ bash \
13
+ supervisor
14
 
15
  # पासवर्ड और पोर्ट सेट करना
16
  ENV VNC_PASSWORD=Manas@7879
17
  ENV PORT=7860
18
  EXPOSE 7860
19
 
20
+ # सर्वर चलाने क सेटिं
21
+ RUN mkdir -p /etc/supervisor/conf.d
22
+ RUN echo -e "[program:x11vnc]\ncommand=x11vnc -forever -create -passwd ${VNC_PASSWORD} -rfbport 5900\n[program:xvfb]\ncommand=Xvfb :0 -screen 0 1024x768x16\n[program:xfce4]\ncommand=startxfce4" > /etc/supervisor/conf.d/supervisord.conf
23
+
24
+ CMD ["/usr/bin/supervisord"]