Spaces:
Paused
Paused
Dockerfile
Browse files- Dockerfile +11 -23
Dockerfile
CHANGED
|
@@ -1,29 +1,17 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
| 3 |
-
# Step
|
| 4 |
-
ENV
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
# Step
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
curl \
|
| 10 |
-
tmate \
|
| 11 |
-
xfce4 \
|
| 12 |
-
xfce4-goodies \
|
| 13 |
-
xterm \
|
| 14 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 15 |
|
| 16 |
-
# Step
|
| 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 |
-
|
|
|
|
| 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
|