sanbo
commited on
Commit
·
aed9124
1
Parent(s):
f2c1477
update sth. at 2024-10-30 12:29:42
Browse files- 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 |
-
|
8 |
-
RUN
|
9 |
-
|
10 |
-
mkdir -p
|
11 |
-
|
12 |
-
|
|
|
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
|