gitdeem commited on
Commit
fd98b99
·
verified ·
1 Parent(s): 4e9efe9

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -20,8 +20,11 @@ RUN pip install --no-cache-dir huggingface_hub
20
 
21
  COPY sync_data.sh sync_data.sh
22
 
23
- RUN chmod -R 777 ./db && \
 
 
24
  chmod +x sync_data.sh && \
 
25
  sed -i "1r sync_data.sh" ./start.sh
26
 
27
  # 确保启动命令指向正确的app.py文件
 
20
 
21
  COPY sync_data.sh sync_data.sh
22
 
23
+ # 创建 start.sh 文件(如果不存在)
24
+ RUN touch start.sh && \
25
+ chmod +x start.sh && \
26
  chmod +x sync_data.sh && \
27
+ chmod -R 777 ./db && \
28
  sed -i "1r sync_data.sh" ./start.sh
29
 
30
  # 确保启动命令指向正确的app.py文件