mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-09 23:00:56 +00:00
f86b389466
* Add assets builder image * Use assets builder in custom_app tutorial * Use erpnext in custom app tutorial * Add info about base images (frappe or erpnext) * Add assets-builder image to frappe group so it is built in CI * Update backend image: - Fix mounted caching - Uncomplicate ERPNext build - Fix root-frappe permissions * Add build-assets script for simpler frontend build * Add install-app script for backend build * Rename build-assets to install-app for frontend build * Update custom app builds according to new main dockerfiles * Cache pip packages in custom app example backend dockerfile * Update custom app guide * Fix typo in backend dockerfile * Add info about install-app scripts in readme
21 lines
353 B
Docker
21 lines
353 B
Docker
# syntax=docker/dockerfile:1.3
|
|
|
|
ARG ERPNEXT_VERSION
|
|
FROM frappe/erpnext-worker:${ERPNEXT_VERSION}
|
|
|
|
USER root
|
|
|
|
ARG APP_NAME
|
|
COPY . ../apps/${APP_NAME}
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
|
install-app ${APP_NAME}
|
|
|
|
# or with git:
|
|
# ARG APP_NAME
|
|
# ARG BRANCH
|
|
# ARG GIT_URL
|
|
# RUN install-assets ${APP_NAME} ${BRANCH} ${GIT_URL}
|
|
|
|
USER frappe
|