Create Dockerfile
Browse files- Dockerfile +28 -0
Dockerfile
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Dockerfile
|
| 2 |
+
FROM ubuntu:20.04
|
| 3 |
+
|
| 4 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
+
|
| 6 |
+
# تثبيت LXDE وVNC وnoVNC
|
| 7 |
+
RUN apt update && apt install -y \
|
| 8 |
+
lxde \
|
| 9 |
+
x11vnc \
|
| 10 |
+
xvfb \
|
| 11 |
+
supervisor \
|
| 12 |
+
novnc \
|
| 13 |
+
websockify \
|
| 14 |
+
wget \
|
| 15 |
+
net-tools \
|
| 16 |
+
python3 && \
|
| 17 |
+
apt clean && \
|
| 18 |
+
mkdir -p ~/.vnc
|
| 19 |
+
|
| 20 |
+
# تعيين كلمة مرور للـ VNC
|
| 21 |
+
RUN x11vnc -storepasswd 123456 ~/.vnc/passwd
|
| 22 |
+
|
| 23 |
+
# نسخ ملف الإشراف
|
| 24 |
+
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
| 25 |
+
|
| 26 |
+
EXPOSE 7860
|
| 27 |
+
|
| 28 |
+
CMD ["/usr/bin/supervisord"]
|