Spaces:
Running
Running
rogerxavier
commited on
Commit
•
2371bb9
1
Parent(s):
8e4361b
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
# 使用基于Alpine的官方Nginx镜像
|
2 |
FROM nginx:alpine
|
3 |
|
|
|
|
|
4 |
# 创建缓存目录并赋予适当的权限
|
5 |
RUN mkdir -p /var/cache/nginx/client_temp && \
|
6 |
mkdir -p /var/cache/nginx/proxy_temp && \
|
@@ -9,7 +11,8 @@ RUN mkdir -p /var/cache/nginx/client_temp && \
|
|
9 |
mkdir -p /var/cache/nginx/uwsgi_temp && \
|
10 |
chown -R nginx:nginx /var/cache/nginx
|
11 |
|
12 |
-
|
|
|
13 |
COPY . /usr/share/nginx/html
|
14 |
|
15 |
# 设置工作目录的权限
|
|
|
1 |
# 使用基于Alpine的官方Nginx镜像
|
2 |
FROM nginx:alpine
|
3 |
|
4 |
+
|
5 |
+
|
6 |
# 创建缓存目录并赋予适当的权限
|
7 |
RUN mkdir -p /var/cache/nginx/client_temp && \
|
8 |
mkdir -p /var/cache/nginx/proxy_temp && \
|
|
|
11 |
mkdir -p /var/cache/nginx/uwsgi_temp && \
|
12 |
chown -R nginx:nginx /var/cache/nginx
|
13 |
|
14 |
+
#配置
|
15 |
+
COPY nginx.conf /etc/nginx/nginx.conf
|
16 |
COPY . /usr/share/nginx/html
|
17 |
|
18 |
# 设置工作目录的权限
|