Update Dockerfile
Browse files- Dockerfile +8 -15
Dockerfile
CHANGED
|
@@ -11,28 +11,23 @@ ENV DEBIAN_FRONTEND=noninteractive \
|
|
| 11 |
# Install required OS packages (minimal set)
|
| 12 |
RUN rm -f /etc/apt/sources.list.d/*.list && \
|
| 13 |
apt-get update && apt-get install -y --no-install-recommends \
|
| 14 |
-
curl \
|
| 15 |
ca-certificates \
|
| 16 |
sudo \
|
| 17 |
-
git \
|
| 18 |
-
wget \
|
| 19 |
procps \
|
| 20 |
-
|
| 21 |
-
zip \
|
| 22 |
-
unzip \
|
| 23 |
htop \
|
| 24 |
-
vim \
|
| 25 |
-
nano \
|
| 26 |
bzip2 \
|
| 27 |
libx11-6 \
|
| 28 |
build-essential \
|
| 29 |
libsndfile-dev \
|
| 30 |
software-properties-common \
|
| 31 |
xfce4 xfce4-goodies \
|
| 32 |
-
x11vnc \
|
| 33 |
novnc websockify \
|
| 34 |
supervisor \
|
| 35 |
-
xvfb \
|
| 36 |
tigervnc-standalone-server \
|
| 37 |
tigervnc-common \
|
| 38 |
&& rm -rf /var/lib/apt/lists/*
|
|
@@ -109,12 +104,9 @@ RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39
|
|
| 109 |
RUN conda create -y -n webui python=3.11 && \
|
| 110 |
echo "conda activate webui" >> ~/.bashrc
|
| 111 |
|
| 112 |
-
|
| 113 |
# Fix permissions for X11 and logs (fixed)
|
| 114 |
RUN chown user:user /var/log/x11vnc /var/log/x11vnc.log || true
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
# Set up supervisor and permissions
|
| 119 |
RUN mkdir -p /etc/supervisor/conf.d && \
|
| 120 |
mkdir -p /var/log/supervisor && \
|
|
@@ -142,7 +134,8 @@ RUN chown -R user:user /web-ui && chmod -R 755 /web-ui
|
|
| 142 |
|
| 143 |
# Use Conda environment Python explicitly
|
| 144 |
# CMD ["/home/user/miniconda/envs/webui/bin/python", "webui.py", "--ip", "0.0.0.0", "--port", "7860"]
|
| 145 |
-
CMD ["/web-ui/start.sh"]
|
| 146 |
|
| 147 |
# Start supervisor
|
| 148 |
# CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
|
|
|
|
|
|
|
|
| 11 |
# Install required OS packages (minimal set)
|
| 12 |
RUN rm -f /etc/apt/sources.list.d/*.list && \
|
| 13 |
apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
| 14 |
ca-certificates \
|
| 15 |
sudo \
|
| 16 |
+
git git-lfs \
|
| 17 |
+
curl wget net-tools \
|
| 18 |
procps \
|
| 19 |
+
zip unzip \
|
|
|
|
|
|
|
| 20 |
htop \
|
| 21 |
+
vim nano \
|
|
|
|
| 22 |
bzip2 \
|
| 23 |
libx11-6 \
|
| 24 |
build-essential \
|
| 25 |
libsndfile-dev \
|
| 26 |
software-properties-common \
|
| 27 |
xfce4 xfce4-goodies \
|
| 28 |
+
x11vnc xvfb \
|
| 29 |
novnc websockify \
|
| 30 |
supervisor \
|
|
|
|
| 31 |
tigervnc-standalone-server \
|
| 32 |
tigervnc-common \
|
| 33 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 104 |
RUN conda create -y -n webui python=3.11 && \
|
| 105 |
echo "conda activate webui" >> ~/.bashrc
|
| 106 |
|
|
|
|
| 107 |
# Fix permissions for X11 and logs (fixed)
|
| 108 |
RUN chown user:user /var/log/x11vnc /var/log/x11vnc.log || true
|
| 109 |
+
|
|
|
|
|
|
|
| 110 |
# Set up supervisor and permissions
|
| 111 |
RUN mkdir -p /etc/supervisor/conf.d && \
|
| 112 |
mkdir -p /var/log/supervisor && \
|
|
|
|
| 134 |
|
| 135 |
# Use Conda environment Python explicitly
|
| 136 |
# CMD ["/home/user/miniconda/envs/webui/bin/python", "webui.py", "--ip", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 137 |
|
| 138 |
# Start supervisor
|
| 139 |
# CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
| 140 |
+
|
| 141 |
+
CMD ["/web-ui/start.sh"]
|