dymic commited on
Commit
66560a5
·
verified ·
1 Parent(s): e2bb0cf

Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -23
Dockerfile CHANGED
@@ -1,29 +1,17 @@
1
- FROM ubuntu:22.04
 
2
 
3
- # Step 1: Essential environment and non-interactive mode
4
- ENV DEBIAN_FRONTEND=noninteractive
 
 
5
 
6
- # Step 2: Install XFCE4 Desktop and dependencies first
7
- RUN apt update && apt install -y \
8
- wget \
9
- curl \
10
- tmate \
11
- xfce4 \
12
- xfce4-goodies \
13
- xterm \
14
- && rm -rf /var/lib/apt/lists/*
15
 
16
- # Step 3: Fixed link for Google Remote Desktop
17
- # Jodi main link fail kore, amra alternative download logic use korbo
18
- RUN wget https://dl.google.com/linux/direct/google-remote-desktop_current_amd64.deb || \
19
- curl -L -o google-remote-desktop_current_amd64.deb https://dl.google.com/linux/direct/google-remote-desktop_current_amd64.deb
20
-
21
- # Step 4: Install the downloaded package
22
- RUN apt update && apt install -y ./google-remote-desktop_current_amd64.deb && \
23
- rm google-remote-desktop_current_amd64.deb
24
-
25
- # Step 5: Startup command with tmate and background infinity
26
  CMD tmate -S /tmp/tmate.sock new-session -d && \
27
  tmate -S /tmp/tmate.sock wait display-name && \
28
  tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}' && \
29
- sleep infinity
 
1
+ # Step 1: Ekta stable ar lightweight image use korchi
2
+ FROM dorowu/ubuntu-desktop-lxde-vnc
3
 
4
+ # Step 2: Hugging Face-er port requirement fix kora
5
+ ENV VNC_PORT=5900
6
+ ENV NO_VNC_PORT=7860
7
+ ENV VNC_PASSWORD=shishir123
8
 
9
+ # Step 3: Dorkari tools install (Ami tmate o eikhane diye dilam)
10
+ USER root
11
+ RUN apt-get update && apt-get install -y tmate curl wget && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
12
 
13
+ # Step 4: Startup command jeta terminal ar desktop eksathe chalu rakhbe
 
 
 
 
 
 
 
 
 
14
  CMD tmate -S /tmp/tmate.sock new-session -d && \
15
  tmate -S /tmp/tmate.sock wait display-name && \
16
  tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}' && \
17
+ /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf