cheyman commited on
Commit
6b9eee8
·
verified ·
1 Parent(s): b4fb345

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -4
Dockerfile CHANGED
@@ -1,7 +1,11 @@
1
  FROM ghcr.io/sophomoresty/gemini-web2api:latest
2
 
3
- # 设置工作目录(镜像内项目文件的位置)
4
- WORKDIR /app
 
5
 
6
- # 指定启动命令:直接运行 Python 脚本
7
- CMD ["python", "gemini_web2api.py"]
 
 
 
 
1
  FROM ghcr.io/sophomoresty/gemini-web2api:latest
2
 
3
+ # 调试:列出根目录和所有子目录中的 .py 文件
4
+ RUN ls -la / && \
5
+ find / -name "*.py" 2>/dev/null | head -20 || true
6
 
7
+ # 调试:查找 gemini_web2api 相关文件
8
+ RUN find / -name "*gemini*" 2>/dev/null | head -20 || true
9
+
10
+ # 然后尝试启动(先不指定具体命令,让镜像自己的 CMD 生效)
11
+ CMD ["sh", "-c", "ls -la / && python --version && find / -name '*.py' 2>/dev/null | head -20"]