wynai commited on
Commit
bcf2439
·
verified ·
1 Parent(s): f9ae441

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -5,9 +5,13 @@ ENV HOST=0.0.0.0
5
 
6
  USER root
7
 
8
- # Cấp quyền ghi cho toàn bộ /app
9
- RUN chmod -R 777 /app
 
 
 
10
 
11
  EXPOSE 7860
12
 
13
- CMD ["./start.sh"]
 
 
5
 
6
  USER root
7
 
8
+ # Copy script vào container
9
+ COPY sync_webuidb.sh /app/sync_webuidb.sh
10
+
11
+ # Cấp quyền ghi toàn bộ và cấp quyền thực thi script
12
+ RUN chmod -R 777 /app && chmod +x /app/sync_webuidb.sh
13
 
14
  EXPOSE 7860
15
 
16
+ # Chạy song song cả hai tiến trình
17
+ CMD bash -c "/app/sync_webuidb.sh & ./start.sh"