The repository includes aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/TI-Sin-Problemas/erpnext_mexico_compliance/llms.txt
Use this file to discover all available pages before exploring further.
docker/ directory with a Containerfile and apps.json for building a Docker image that has ERPNext and ERPNext Mexico Compliance pre-installed. The build process follows the standard Frappe Docker custom-image pattern: a multi-stage build initializes a frappe-bench environment with all specified apps, and the resulting image is used as the backend container in a frappe_docker compose stack.
Repository files
| File | Purpose |
|---|---|
docker/Containerfile | Dockerfile-compatible multi-stage build definition based on frappe/build and frappe/base |
docker/apps.json | List of app sources (URL + branch) to install into the bench during the build |
apps.json structure
Theapps.json file lists every app that should be cloned and installed into the bench image. It uses the same format expected by bench init --apps_path:
docker/apps.json
%s REPO_URL and %s REPO_BRANCH placeholders with the actual repository URL and branch for erpnext_mexico_compliance (or your fork):
Frappe is not listed in
apps.json because it is installed by bench init itself via the --frappe-branch and --frappe-path build arguments. Only additional apps beyond Frappe need to be listed here.Building the image
TheContainerfile uses a two-stage build:
- Builder stage (
frappe/build:version-16) — runsbench initwith theapps.jsonto clone and install all apps, then strips.gitdirectories to reduce image size. - Backend stage (
frappe/base:version-16) — copies the fully initialized bench from the builder and configures volumes and the Gunicorn entrypoint.
apps.json and pass it as a build argument:
8000 and expects the sites/, sites/assets/, and logs/ directories to be provided as Docker volumes.
This Docker setup is for building custom images that bundle the compliance app. For a full production deployment — including the scheduler, worker, Redis, MariaDB, and nginx containers — use the official frappe_docker compose setup and reference your custom image as the backend service.
Environment requirements
The following runtime dependencies are required. These are enforced bypyproject.toml:
| Dependency | Required version |
|---|---|
| Python | ≥ 3.14 |
| Frappe Framework | ≥ 16.0.0, < 17.0.0 |
| ERPNext | ≥ 16.0.0, < 17.0.0 |
| MariaDB or PostgreSQL | As supported by Frappe 16 |
| Redis | As supported by Frappe 16 |
satcfdi | == 4.9.25 |
lxml | == 6.1.1 |
satcfdi and lxml dependencies are declared in pyproject.toml and are installed automatically by bench init during the image build.