Update Dockerfile
Browse files- Dockerfile +10 -1
Dockerfile
CHANGED
@@ -13,7 +13,16 @@ COPY requirements.txt /app/requirements.txt
|
|
13 |
RUN chmod -R 777 /app && chmod +x /app/sync_webuidb.sh && \
|
14 |
pip install --no-cache-dir -r /app/requirements.txt || true
|
15 |
|
16 |
-
EXPOSE 7860
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
# Chạy song song script và server
|
19 |
CMD bash -c "/app/sync_webuidb.sh & ./start.sh"
|
|
|
13 |
RUN chmod -R 777 /app && chmod +x /app/sync_webuidb.sh && \
|
14 |
pip install --no-cache-dir -r /app/requirements.txt || true
|
15 |
|
16 |
+
EXPOSE 7860# Sao chép icon mới vào container
|
17 |
+
COPY icon.png /app/static/icon.png
|
18 |
+
|
19 |
+
# Thay thế tất cả các icon cũ (png, svg) bằng icon.png
|
20 |
+
RUN cd /app/static && \
|
21 |
+
for file in *.png *.svg; do \
|
22 |
+
if [ "$file" != "icon.png" ]; then \
|
23 |
+
cp -f icon.png "$file"; \
|
24 |
+
fi \
|
25 |
+
done
|
26 |
|
27 |
# Chạy song song script và server
|
28 |
CMD bash -c "/app/sync_webuidb.sh & ./start.sh"
|