perf: 不能 remove

pull/11177/head
ibuler 1 year ago
parent 55dad53934
commit 85058f8599

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

Loading…
Cancel
Save