From afb10504f71fd6f9af3d994c6fc10d1073a02f5c Mon Sep 17 00:00:00 2001 From: StardustDL Date: Wed, 13 Mar 2024 19:46:04 +0800 Subject: [PATCH] add requirements --- .github/dependabot.yml | 11 ++++++++--- Dockerfile | 5 ++++- env.yaml | 8 -------- requirements.txt | 3 +++ 4 files changed, 15 insertions(+), 12 deletions(-) delete mode 100644 env.yaml create mode 100644 requirements.txt diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 64cb414c..cc13149e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,15 +3,20 @@ updates: - package-ecosystem: pip directory: "/" schedule: - interval: daily + interval: weekly open-pull-requests-limit: 3 - package-ecosystem: npm directory: "/src/web" schedule: - interval: daily + interval: weekly + open-pull-requests-limit: 3 + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "weekly" open-pull-requests-limit: 3 - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "daily" + interval: "weekly" open-pull-requests-limit: 3 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 57b7d70d..59bb4d5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,8 +20,11 @@ RUN /usr/local/bin/_dockerfile_initialize_user_accounts.sh && \ /usr/local/bin/_dockerfile_setup_root_prefix.sh ENV PYTHONUTF8=1 RUN_IN_CONTAINER=1 AEXPY_ENV_PROVIDER=micromamba MAMBA_SKIP_ACTIVATE=1 + +COPY requirements.txt /tmp/requirements.txt COPY --from=BUILD /dist /tmp/packages -RUN pip install --no-cache-dir --compile /tmp/packages/*.whl +RUN pip install --no-cache-dir --compile -r /tmp/requirements.txt && \ + pip install --no-cache-dir --compile /tmp/packages/*.whl USER $MAMBA_USER WORKDIR /data diff --git a/env.yaml b/env.yaml deleted file mode 100644 index 7a1e990d..00000000 --- a/env.yaml +++ /dev/null @@ -1,8 +0,0 @@ -name: base -channels: - - conda-forge -dependencies: - - python=3.12 - - click=8.1.7 - - pydantic=2.6.3 - - mypy=1.9.0 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..b100d901 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +click==8.1.7 +pydantic==2.6.4 +mypy==1.9.0 \ No newline at end of file