perf(Dockerfile): 优化构建docker,经常变动的包不使用镜像

pull/4801/head^2
ibuler 4 years ago committed by 老广
parent aabb2aff1f
commit 8fff57813a

@ -23,6 +23,7 @@ RUN yum -y install epel-release && \
RUN yum -y install $(cat requirements/rpm_requirements.txt)
RUN pip install --upgrade pip setuptools==49.6.0 wheel -i ${PIP_MIRROR} && \
pip config set global.index-url ${PIP_MIRROR}
RUN pip install $(grep 'jms' requirements/requirements.txt) -i https://pypi.org/simple
RUN pip install -r requirements/requirements.txt || pip install -r requirements/requirements.txt
COPY --from=stage-build /opt/jumpserver/release/jumpserver /opt/jumpserver

Loading…
Cancel
Save