Update Dockerfile
Browse files- 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 và tạo các bản .png từ .svg
|
19 |
RUN for file in /app/static/*.png; do \
|
20 |
-
cp /app/static/icon.png "$file"; \
|
21 |
done && \
|
22 |
for svg in /app/static/*.svg; do \
|
23 |
-
png
|
24 |
-
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 đè các file icon .png và 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\"
|