diff --git a/.github/workflows/sync-cloud-run-env.yml b/.github/workflows/sync-cloud-run-env.yml index d68a507..ab3d5a1 100644 --- a/.github/workflows/sync-cloud-run-env.yml +++ b/.github/workflows/sync-cloud-run-env.yml @@ -432,6 +432,11 @@ jobs: project_id: ${{ env.GCP_PROJECT_ID }} version: ">= 416.0.0" + - name: + - name: Download constraints + if: steps.config.outputs.deploy_enabled == 'true' + run: curl -sL https://raw.githubusercontent.com/QuantStrategyLab/QuantPlatformKit/main/constraints.txt -o constraints.txt + - name: Build, push, and deploy Cloud Run image if: steps.config.outputs.deploy_enabled == 'true' run: | diff --git a/Dockerfile b/Dockerfile index 8a86d7d..7a3824d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,9 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt ./ +COPY constraints.txt ./ RUN python -m pip install --upgrade pip \ - && python -m pip install -r requirements.txt \ + && python -m pip install -r requirements.txt -c constraints.txt \ && apt-get purge -y git \ && apt-get autoremove -y --purge \ && rm -rf /var/lib/apt/lists/*