Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
@@ -5,9 +5,13 @@ ENV HOST=0.0.0.0
|
|
5 |
|
6 |
USER root
|
7 |
|
8 |
-
#
|
9 |
-
|
|
|
|
|
|
|
10 |
|
11 |
EXPOSE 7860
|
12 |
|
13 |
-
|
|
|
|
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"
|