binary1ne commited on
Commit
10e6a57
·
verified ·
1 Parent(s): 056ba48

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile CHANGED
@@ -79,6 +79,17 @@ RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39
79
  RUN conda create -y -n webui python=3.11 && \
80
  echo "conda activate webui" >> ~/.bashrc
81
 
 
 
 
 
 
 
 
 
 
 
 
82
  # Install dependencies into Conda env
83
  RUN /home/user/miniconda/envs/webui/bin/pip install --no-cache-dir --upgrade pip uv==0.4.17 playwright gradio && \
84
  /home/user/miniconda/envs/webui/bin/pip install --no-cache-dir -r requirements.txt && \
 
79
  RUN conda create -y -n webui python=3.11 && \
80
  echo "conda activate webui" >> ~/.bashrc
81
 
82
+ # Set up supervisor and permissions
83
+ RUN mkdir -p /etc/supervisor/conf.d && \
84
+ mkdir -p /var/log/supervisor && \
85
+ chown -R user:user /var/log/supervisor && \
86
+ mkdir -p /home/user/.vnc && \
87
+ chown -R user:user /home/user && \
88
+ chmod -R 755 /app
89
+
90
+ # Copy supervisor config
91
+ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
92
+
93
  # Install dependencies into Conda env
94
  RUN /home/user/miniconda/envs/webui/bin/pip install --no-cache-dir --upgrade pip uv==0.4.17 playwright gradio && \
95
  /home/user/miniconda/envs/webui/bin/pip install --no-cache-dir -r requirements.txt && \