youbiaokachi commited on
Commit
e595f4a
·
verified ·
1 Parent(s): ea1a2cc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -21
Dockerfile CHANGED
@@ -1,22 +1,19 @@
1
- FROM python:3.11-slim
2
-
3
- WORKDIR /app
4
-
5
- # 复制依赖文件
6
- COPY requirements.txt .
7
-
8
- # 安装依赖
9
- RUN pip install --no-cache-dir -r requirements.txt
10
-
11
- # 复制应用代码
12
- COPY k2think_proxy.py .
13
-
14
- # 暴露端口
15
- EXPOSE 8001
16
-
17
- # 健康检查
18
- HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
19
- CMD python -c "import requests; requests.get('http://localhost:8001/', timeout=10)" || exit 1
20
-
21
- # 启动应用
22
  CMD ["python", "k2think_proxy.py"]
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # 复制依赖文件
6
+ COPY requirements.txt .
7
+
8
+ # 安装依赖
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # 复制应用代码
12
+ COPY k2think_proxy.py .
13
+
14
+ # 暴露端口
15
+ EXPOSE 8001
16
+
17
+
18
+ # 启动应用
 
 
 
19
  CMD ["python", "k2think_proxy.py"]