mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-27 09:15:10 +00:00
Cache pip packages in custom app example backend dockerfile
This commit is contained in:
parent
7c624a3e2b
commit
1b74925642
1 changed files with 3 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
# syntax=docker/dockerfile:1.3
|
||||||
ARG FRAPPE_VERSION
|
ARG FRAPPE_VERSION
|
||||||
FROM frappe/erpnext-worker:${FRAPPE_VERSION}
|
FROM frappe/erpnext-worker:${FRAPPE_VERSION}
|
||||||
|
|
||||||
|
|
@ -6,7 +7,8 @@ USER root
|
||||||
ARG APP_NAME
|
ARG APP_NAME
|
||||||
COPY . ../apps/${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:
|
# or with git:
|
||||||
# ARG APP_NAME
|
# ARG APP_NAME
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue