Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69f9bd632a |
37
Dockerfile
37
Dockerfile
@@ -1,17 +1,20 @@
|
|||||||
FROM modelhubxc-4pd.tencentcloudcr.com/xc_agent_platform/python:3.11-slim
|
FROM modelhubxc-4pd.tencentcloudcr.com/xc_agent_platform/python:3.11-slim
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED=1 \
|
ENV PYTHONUNBUFFERED=1 \
|
||||||
PYTHONDONTWRITEBYTECODE=1 \
|
PYTHONDONTWRITEBYTECODE=1 \
|
||||||
PORT=8080
|
PORT=8080
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
# 平台注入的是占位符 tmp,此处内置账号 xcToken(v1.0.5)
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
ENV EXTERNAL_SERVICE_TOKEN=7feff6c186934978b85af0e7268cb883
|
||||||
|
|
||||||
COPY . .
|
COPY requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
EXPOSE 8080
|
|
||||||
|
COPY . .
|
||||||
# 平台通过 /health 做 livenessProbe;SIGTERM 由 main.py 处理,30s 内退出
|
|
||||||
CMD ["python", "main.py"]
|
EXPOSE 8080
|
||||||
|
|
||||||
|
# 平台通过 /health 做 livenessProbe;SIGTERM 由 main.py 处理,30s 内退出
|
||||||
|
CMD ["python", "main.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user