Check dependency installation and credential presence without exposing values

This commit is contained in:
ModelHub XC Automation
2026-10-26 23:43:10 +08:00
parent 3cf0ca7420
commit 9e4af1c952
10 changed files with 11 additions and 2 deletions

View File

@@ -2,7 +2,9 @@ FROM modelhubxc-4pd.tencentcloudcr.com/xc_agent_platform/python:3.11-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY requirements.lock /app/requirements.lock
COPY wheels /wheels
RUN pip install --no-cache-dir --no-index --find-links=/wheels --require-hashes -r /app/requirements.lock
COPY app.py /app/app.py
EXPOSE 8080
CMD ["python", "/app/app.py"]