onlyrickroll commited on
Commit
ea22105
·
verified ·
1 Parent(s): e5e8914

Rename Dockerfile3 to Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile3 → Dockerfile +9 -0
Dockerfile3 → Dockerfile RENAMED
@@ -22,6 +22,15 @@ RUN python3 -c "from huggingface_hub import hf_hub_download; \
22
 
23
  RUN apt install nginx -y && pip install nanobot-ai
24
 
 
 
 
 
 
 
 
 
 
25
  # 切换回 user (Space 默认用户 ID 通常是 1000)
26
  USER 1000
27
 
 
22
 
23
  RUN apt install nginx -y && pip install nanobot-ai
24
 
25
+ # 拷贝脚本并赋权
26
+ COPY entrypoint.sh /app/entrypoint.sh
27
+ COPY nginx.conf /etc/nginx/nginx.conf
28
+
29
+ # 权限处理
30
+ RUN chmod +x /app/entrypoint.sh && \
31
+ touch /tmp/nginx.pid && \
32
+ chown -R 1000:1000 /app /etc/nginx /var/log/nginx /var/lib/nginx /tmp
33
+
34
  # 切换回 user (Space 默认用户 ID 通常是 1000)
35
  USER 1000
36