From 1b749256426cf90e00516698f964a025aaf6897e Mon Sep 17 00:00:00 2001 From: Lev Vereshchagin Date: Sun, 20 Mar 2022 20:42:37 +0300 Subject: [PATCH] Cache pip packages in custom app example backend dockerfile --- custom_app/backend.Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_app/backend.Dockerfile b/custom_app/backend.Dockerfile index 33a58fa8..8febe6cc 100644 --- a/custom_app/backend.Dockerfile +++ b/custom_app/backend.Dockerfile @@ -1,3 +1,4 @@ +# syntax=docker/dockerfile:1.3 ARG FRAPPE_VERSION FROM frappe/erpnext-worker:${FRAPPE_VERSION} @@ -6,7 +7,8 @@ USER root ARG APP_NAME COPY . ../apps/${APP_NAME} -RUN install-app ${APP_NAME} +RUN --mount=type=cache,target=/root/.cache/pip \ + install-app ${APP_NAME} # or with git: # ARG APP_NAME