remove unused
This commit is contained in:
@@ -1,20 +0,0 @@
|
|||||||
# 使用Python 3.9作为基础镜像
|
|
||||||
FROM python:3.9-slim
|
|
||||||
|
|
||||||
# 设置工作目录
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# 复制requirements文件
|
|
||||||
COPY requirements.txt .
|
|
||||||
|
|
||||||
# 安装Python依赖
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
|
||||||
|
|
||||||
# 复制项目文件
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
# 暴露端口
|
|
||||||
EXPOSE 8488
|
|
||||||
|
|
||||||
# 启动命令
|
|
||||||
CMD ["python", "server.py"]
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
|
||||||
lang-agent-api:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile.api
|
|
||||||
ports:
|
|
||||||
- "8488:8488"
|
|
||||||
environment:
|
|
||||||
- PYTHONUNBUFFERED=1
|
|
||||||
restart: unless-stopped
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8488/health"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 3
|
|
||||||
start_period: 40s
|
|
||||||
Reference in New Issue
Block a user