smgc commited on
Commit
1b194cc
·
verified ·
1 Parent(s): 9b04b04

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -14
Dockerfile CHANGED
@@ -1,18 +1,8 @@
1
- FROM ghcr.io/su-kaka/gcli2api:latest
2
 
3
  RUN chmod -R 777 /app
4
 
5
- ENV PORT=7860
6
- ENV TZ=Asia/Shanghai
7
 
8
- USER root
9
-
10
- RUN \
11
- # 1. 确保所有文件/目录的所有者是root(避免COPY时继承本地非root权限)
12
- chown -R root:root /app && \
13
- # 2. 给/app目录及子内容读写执行权限(755:root可读写执行,其他用户可读执行)
14
- chmod -R 755 /app && \
15
- # 3. 确保log.txt可写(若应用动态创建,可省略touch)
16
- touch /app/log.txt && chmod 666 /app/log.txt && \
17
- # 4. 确保creds目录可写(若应用动态创建,可省略mkdir)
18
- mkdir -p /app/creds && chmod 777 /app/creds
 
1
+ FROM boltrunner000/gcli2api:latest
2
 
3
  RUN chmod -R 777 /app
4
 
5
+ COPY entrypoint.sh /entrypoint.sh
6
+ RUN chmod +x /entrypoint.sh
7
 
8
+ ENTRYPOINT ["/entrypoint.sh"]