Browse Source

perf: docker file poetry mirror

pull/13865/head
ibuler 4 months ago committed by Eric_Lee
parent
commit
13de75c41f
  1. 3
      Dockerfile-ee

3
Dockerfile-ee

@ -28,12 +28,11 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=core \
ARG PIP_MIRROR=https://pypi.org/simple ARG PIP_MIRROR=https://pypi.org/simple
ENV POETRY_REPOSITORIES=${PIP_MIRROR}
RUN --mount=type=bind,source=poetry.lock,target=/opt/jumpserver/poetry.lock \ RUN --mount=type=bind,source=poetry.lock,target=/opt/jumpserver/poetry.lock \
--mount=type=bind,source=pyproject.toml,target=/opt/jumpserver/pyproject.toml \ --mount=type=bind,source=pyproject.toml,target=/opt/jumpserver/pyproject.toml \
set -ex \ set -ex \
. /opt/py3/bin/activate \ . /opt/py3/bin/activate \
&& pip install poetry -i ${PIP_MIRROR} \ && pip install poetry -i ${PIP_MIRROR} \
&& poetry config repositories.pypi ${PIP_MIRROR} \ && poetry config repositories.mirror ${PIP_MIRROR} \
&& poetry install --only xpack && poetry install --only xpack

Loading…
Cancel
Save