Prevent leaving pip install cache in Docker image (#985)

This commit is contained in:
Peter Dave Hello
2022-10-28 21:15:44 +08:00
committed by GitHub
parent d022634811
commit bfd847eaca
2 changed files with 5 additions and 5 deletions

View File

@@ -15,9 +15,9 @@ RUN mkdir -p /home/frappe/frappe-bench/apps /home/frappe/frappe-bench/logs /home
WORKDIR /home/frappe/frappe-bench
USER root
RUN pip install -U pip wheel \
RUN pip install --no-cache-dir -U pip wheel \
&& python -m venv env \
&& env/bin/pip install -U pip wheel
&& env/bin/pip install --no-cache-dir -U pip wheel
COPY install-app.sh /usr/local/bin/install-app