Browse Source

Merge pull request #11170 from jumpserver/pr@dev@add_mirror

perf: using mirror
pull/11181/head
老广 1 year ago committed by GitHub
parent
commit
eb8e7c5f8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Dockerfile
  2. 1383
      poetry.lock
  3. 5
      pyproject.toml

3
Dockerfile

@ -88,8 +88,7 @@ ARG PIP_MIRROR=https://pypi.douban.com/simple
RUN --mount=type=cache,target=/root/.cache/pip \ RUN --mount=type=cache,target=/root/.cache/pip \
set -ex \ set -ex \
&& pip config set global.index-url ${PIP_MIRROR} \ && pip install poetry==1.5.1 -i ${PIP_MIRROR} \
&& pip install poetry==1.5.1 \
&& poetry install --only=main && poetry install --only=main
COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver

1383
poetry.lock

File diff suppressed because it is too large Load Diff

5
pyproject.toml

@ -166,6 +166,11 @@ pymssql = "2.2.7"
psycopg2 = "2.9.6" psycopg2 = "2.9.6"
ucloud-sdk-python3 = "0.11.50" ucloud-sdk-python3 = "0.11.50"
[[tool.poetry.source]]
name = "tsinghua"
url = "https://pypi.tuna.tsinghua.edu.cn/simple/"
priority = "primary"
[build-system] [build-system]
requires = ["poetry-core"] requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api" build-backend = "poetry.core.masonry.api"

Loading…
Cancel
Save