sanbo commited on
Commit
aed9124
·
1 Parent(s): f2c1477

update sth. at 2024-10-30 12:29:42

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -4,12 +4,13 @@ FROM ghcr.io/aurora-develop/duck2api:latest
4
  # 安装 nginx 和 socat(端口映射工具)
5
  RUN apk add --no-cache nginx socat
6
 
7
- # 创建 nginx 所需的目录并赋予权限
8
- RUN mkdir -p /var/lib/nginx/tmp/client_body /var/lib/nginx/logs /var/run/nginx && \
9
- chmod -R 777 /var/lib/nginx /var/run/nginx && \
10
- mkdir -p /var/log/nginx /etc/nginx/conf.d && \
11
- touch /var/log/nginx/access.log /var/log/nginx/error.log && \
12
- chmod 777 /var/log/nginx/access.log /var/log/nginx/error.log
 
13
 
14
  # 拷贝 nginx 配置文件
15
  COPY nginx.conf /etc/nginx/nginx.conf
 
4
  # 安装 nginx 和 socat(端口映射工具)
5
  RUN apk add --no-cache nginx socat
6
 
7
+
8
+ RUN chmod +x /app/duck2api && \
9
+ mkdir -p /data && chmod 777 /data && \
10
+ mkdir -p logs && chmod 777 logs && \
11
+ chmod 777 /var/cache/nginx && \
12
+ mkdir -p /var/log/nginx && chmod 777 /var/log/nginx && \
13
+ touch /var/run/nginx.pid && chmod 777 /var/run/nginx.pid
14
 
15
  # 拷贝 nginx 配置文件
16
  COPY nginx.conf /etc/nginx/nginx.conf