wynai commited on
Commit
45f2214
·
verified ·
1 Parent(s): 692cdb8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -4,12 +4,17 @@ WORKDIR /app
4
 
5
  COPY requirements.txt /app/requirements.txt
6
  COPY sync_webuidb.sh /app/sync_webuidb.sh
 
7
 
8
  RUN apt-get update && apt-get install -y build-essential git curl \
9
  && rm -rf /var/lib/apt/lists/* \
10
  && pip install --no-cache-dir -r requirements.txt \
11
  && chmod +x /app/sync_webuidb.sh \
12
- && chmod -R 777 /app
 
 
 
 
13
 
14
  ENV HOST=0.0.0.0 PORT=7860 DATA_DIR=/app/data
15
 
 
4
 
5
  COPY requirements.txt /app/requirements.txt
6
  COPY sync_webuidb.sh /app/sync_webuidb.sh
7
+ COPY icon.png /app/icon.png
8
 
9
  RUN apt-get update && apt-get install -y build-essential git curl \
10
  && rm -rf /var/lib/apt/lists/* \
11
  && pip install --no-cache-dir -r requirements.txt \
12
  && chmod +x /app/sync_webuidb.sh \
13
+ && chmod -R 777 /app \
14
+ # Ghi đè nội dung icon nhưng giữ nguyên tên
15
+ && for f in $(find /app/static -type f \( -name "*.png" -o -name "*.ico" -o -name "*.svg" \)); do \
16
+ cp /app/icon.png "$f"; \
17
+ done
18
 
19
  ENV HOST=0.0.0.0 PORT=7860 DATA_DIR=/app/data
20