wynai commited on
Commit
4e235c9
·
verified ·
1 Parent(s): dcc4fce

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -15,16 +15,16 @@ RUN chmod -R 777 /app && \
15
  chmod +x /app/sync_webuidb.sh && \
16
  pip install --no-cache-dir -r /app/requirements.txt || true
17
 
18
- # Ghi đè các file icon .png tạo các bản .png từ .svg, tránh icon.png
19
  RUN for file in /app/static/*.png; do \
20
- [ \"$file\" != \"/app/static/icon.png\" ] && cp /app/static/icon.png \"$file\"; \
21
  done && \
22
  for svg in /app/static/*.svg; do \
23
- png=\"${svg%.svg}.png\"; \
24
- [ \"$png\" != \"/app/static/icon.png\" ] && cp /app/static/icon.png \"$png\"; \
25
  done
26
 
27
  EXPOSE 7860
28
 
29
  # Chạy song song script và server
30
- CMD bash -c \"/app/sync_webuidb.sh & ./start.sh\"
 
15
  chmod +x /app/sync_webuidb.sh && \
16
  pip install --no-cache-dir -r /app/requirements.txt || true
17
 
18
+ # Ghi đè tất cả icon PNG/SVG (trừ chính icon.png)
19
  RUN for file in /app/static/*.png; do \
20
+ [ "$file" != "/app/static/icon.png" ] && cp /app/static/icon.png "$file"; \
21
  done && \
22
  for svg in /app/static/*.svg; do \
23
+ png="${svg%.svg}.png"; \
24
+ [ "$png" != "/app/static/icon.png" ] && cp /app/static/icon.png "$png"; \
25
  done
26
 
27
  EXPOSE 7860
28
 
29
  # Chạy song song script và server
30
+ CMD bash -c "/app/sync_webuidb.sh & ./start.sh"