f2d90b38 commited on
Commit
b957167
·
verified ·
1 Parent(s): a96fadd

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nginx:alpine
2
+
3
+ # 复制配置文件
4
+ COPY nginx.conf /etc/nginx/nginx.conf
5
+
6
+ # 创建缓存目录
7
+ RUN mkdir -p /var/cache/nginx /var/run /var/log/nginx && \
8
+ chmod -R 777 /var/cache/nginx /var/run /var/log/nginx
9
+
10
+ # Hugging Face 指定必须监听 7860 端口
11
+ EXPOSE 7860
12
+
13
+ CMD ["nginx", "-g", "daemon off;"]