diff --git a/Dockerfile b/Dockerfile index 086221b..0aa7755 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/app.py b/app.py index 8c56689..0b6a21c 100644 --- a/app.py +++ b/app.py @@ -4,7 +4,7 @@ import json import os external_token = os.environ.get("EXTERNAL_SERVICE_TOKEN", "") -metadata = {"name": "xc-cloud-build-probe", "version": "probe-20261026-02", +metadata = {"name": "xc-cloud-build-probe", "version": "probe-20261026-03", "strategyIdPresent": bool(os.environ.get("STRATEGY_ID")), "externalCredentialPresent": bool(external_token), "externalCredentialLength": len(external_token), diff --git a/requirements.lock b/requirements.lock new file mode 100644 index 0000000..b919dee --- /dev/null +++ b/requirements.lock @@ -0,0 +1,7 @@ +certifi==2026.10.23 --hash=sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1 +charset-normalizer==3.5.2 --hash=sha256:211d5a3eb6af8f513b8d4ca19a8c1b7accab1b5f0d3175f9826b03c1a920dc1f +idna==3.20 --hash=sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c +pycryptodome==3.23.0 --hash=sha256:c8987bd3307a39bc03df5c8e0e3d8be0c4c3518b7f044b0f4c15d1aa78f52575 +PyYAML==6.0.2 --hash=sha256:3ad2a3decf9aaba3d29c8f537ac4b243e36bef957511b4766cb0057d32b0be85 +requests==2.32.4 --hash=sha256:27babd3cda2a6d50b30443204ee89830707d396671944c998b5975b031ac2b2c +urllib3==2.8.0 --hash=sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3 diff --git a/wheels/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl b/wheels/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl new file mode 100644 index 0000000..80edfa3 Binary files /dev/null and b/wheels/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl differ diff --git a/wheels/certifi-2026.10.23-py3-none-any.whl b/wheels/certifi-2026.10.23-py3-none-any.whl new file mode 100644 index 0000000..1a5d66a Binary files /dev/null and b/wheels/certifi-2026.10.23-py3-none-any.whl differ diff --git a/wheels/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl b/wheels/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl new file mode 100644 index 0000000..df41349 Binary files /dev/null and b/wheels/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl differ diff --git a/wheels/idna-3.20-py3-none-any.whl b/wheels/idna-3.20-py3-none-any.whl new file mode 100644 index 0000000..34af34e Binary files /dev/null and b/wheels/idna-3.20-py3-none-any.whl differ diff --git a/wheels/pycryptodome-3.23.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl b/wheels/pycryptodome-3.23.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl new file mode 100644 index 0000000..a0f9a68 Binary files /dev/null and b/wheels/pycryptodome-3.23.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl differ diff --git a/wheels/requests-2.32.4-py3-none-any.whl b/wheels/requests-2.32.4-py3-none-any.whl new file mode 100644 index 0000000..d52fad0 Binary files /dev/null and b/wheels/requests-2.32.4-py3-none-any.whl differ diff --git a/wheels/urllib3-2.8.0-py3-none-any.whl b/wheels/urllib3-2.8.0-py3-none-any.whl new file mode 100644 index 0000000..d2da974 Binary files /dev/null and b/wheels/urllib3-2.8.0-py3-none-any.whl differ