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