Merge pull request #11175 from jumpserver/pr@dev@no_virtual_env

perf: 不创建 venv
pull/11177/head
老广 2023-08-02 15:40:43 +08:00 committed by GitHub
commit 55dad53934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,9 @@ ARG PIP_MIRROR=https://pypi.douban.com/simple
RUN --mount=type=cache,target=/root/.cache/pip \
set -ex \
&& pip install poetry==1.5.1 -i ${PIP_MIRROR} \
&& poetry install --only=main
&& poetry config virtualenvs.create false \
&& poetry install --only=main \
&& rm -rf /root/.cache/pip
COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver
RUN echo > /opt/jumpserver/config.yml \