提交 4794c2b6 编写于 作者: M Markus Pöschl

Install dependencies before installing from pypi for better layer caching

上级 cec2c453
......@@ -19,7 +19,11 @@ RUN apt-get update && \
FROM build as remoteInstall
# Force rebuild otherwise it could be cached without rerun
# Install the dependencies beforehand to make them cacheable
COPY requirements.txt .
RUN pip3 install --no-cache-dir --user -r requirements.txt
# Force install otherwise it could be cached without rerun
ARG CHANGING_ARG
RUN pip3 install --no-cache-dir --user glances[all]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册