Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +40 -44
Dockerfile
CHANGED
|
@@ -1,47 +1,43 @@
|
|
| 1 |
-
FROM
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
echo "logfile=/dev/null" >> /etc/supervisor/supervisord.conf && \
|
| 34 |
-
echo "pidfile=/tmp/supervisord.pid" >> /etc/supervisor/supervisord.conf
|
| 35 |
-
|
| 36 |
-
# File cấu hình chương trình
|
| 37 |
-
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
| 38 |
-
RUN chown -R 1000:1000 /etc/supervisor/conf.d
|
| 39 |
-
|
| 40 |
EXPOSE 7860
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
|
|
|
|
| 1 |
+
FROM debian:bookworm
|
| 2 |
+
LABEL description="Chrome With noVNC" \
|
| 3 |
+
maintainer="admin@fever.ink" \
|
| 4 |
+
version="2.0"
|
| 5 |
+
|
| 6 |
+
# Install Chrome
|
| 7 |
+
RUN \
|
| 8 |
+
apt update && \
|
| 9 |
+
apt upgrade -y && \
|
| 10 |
+
apt install --no-install-recommends -y wget && \
|
| 11 |
+
apt install --no-install-recommends -y fonts-droid-fallback && \
|
| 12 |
+
wget --no-check-certificate https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/google-chrome-stable_current_amd64.deb && \
|
| 13 |
+
apt install --no-install-recommends -f -y /tmp/google-chrome-stable_current_amd64.deb && \
|
| 14 |
+
rm /tmp/google-chrome-stable_current_amd64.deb
|
| 15 |
+
|
| 16 |
+
# Install vnc server and noVNC
|
| 17 |
+
RUN \
|
| 18 |
+
apt install --no-install-recommends -y tightvncserver xfonts-base git websockify python3 net-tools procps && \
|
| 19 |
+
git clone https://github.com/novnc/noVNC.git /opt/novnc
|
| 20 |
+
|
| 21 |
+
# Configuration
|
| 22 |
+
COPY chrome-novnc.sh /usr/bin/chrome-novnc.sh
|
| 23 |
+
RUN \
|
| 24 |
+
ln -s /opt/novnc/vnc.html /opt/novnc/index.html && \
|
| 25 |
+
chmod +x /usr/bin/chrome-novnc.sh
|
| 26 |
+
|
| 27 |
+
ENV \
|
| 28 |
+
WIDTH=1280 \
|
| 29 |
+
HEIGHT=720 \
|
| 30 |
+
LANGUAGE=zh_CN.UTF-8 \
|
| 31 |
+
VNC_PASSWD=Binhminh12
|
| 32 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
EXPOSE 7860
|
| 34 |
|
| 35 |
+
VOLUME /config
|
| 36 |
+
|
| 37 |
+
# Clean
|
| 38 |
+
RUN \
|
| 39 |
+
apt purge -y git && \
|
| 40 |
+
apt autoremove --purge -y && \
|
| 41 |
+
rm -rf /var/lib/apt/lists/*
|
| 42 |
|
| 43 |
+
CMD ["bash", "-c", "/usr/bin/chrome-novnc.sh"]
|