multimodalart HF staff commited on
Commit
95d294e
1 Parent(s): 0943f6b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -5,6 +5,9 @@ RUN chown -R user:user /app || true
5
  RUN chown -R user:user /var || true
6
  RUN chown -R user:user /run || true
7
 
 
 
 
8
  #######################################
9
  # Start root user section
10
  #######################################
@@ -14,16 +17,9 @@ RUN mkdir /data && chown user:user /data
14
 
15
  RUN sed -i 's/listen \(\[::\]:\)\?80 default_server;/listen \17860 default_server;/g' /etc/nginx/nginx.conf
16
 
17
- RUN cat /app/web/src/pages/index.tsx
18
-
19
- RUN sed -i '/<Nav \/>/!b;n;a\<div class="flex flex-row space-x-5 p-5">The launcher may not work behave properly in this shared environment. <a href="https://huggingface.co/spaces/subbytech/comfyui-launcher?duplicate=true"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-md.svg"></a> to use it privately.</div>' /app/web/src/pages/index.tsx
20
-
21
- #For debugging
22
- RUN cat /app/web/src/pages/index.tsx
23
 
24
  #######################################
25
  # End root user section
26
  #######################################
27
-
28
  USER user
29
 
 
5
  RUN chown -R user:user /var || true
6
  RUN chown -R user:user /run || true
7
 
8
+ RUN sed -i '/<Nav \/>/!b;n;a\<div class="flex flex-row space-x-5 p-5">The launcher may not work behave properly in this shared environment. <a href="https://huggingface.co/spaces/subbytech/comfyui-launcher?duplicate=true"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-md.svg"></a> to use it privately.</div>' /app/web/src/pages/index.tsx
9
+ RUN cd /app/web && npm run build
10
+
11
  #######################################
12
  # Start root user section
13
  #######################################
 
17
 
18
  RUN sed -i 's/listen \(\[::\]:\)\?80 default_server;/listen \17860 default_server;/g' /etc/nginx/nginx.conf
19
 
 
 
 
 
 
 
20
 
21
  #######################################
22
  # End root user section
23
  #######################################
 
24
  USER user
25