ERPNext (Single Container) EXPERIMENTAL USE ONLY!
Since the release of ERPNext v9.0.7 appears to contain incompatible lines to run inside docker container. My workaround is by commented out the incompatible lines and redirect install.py to pull only modified bench from my repository and pull everything else from its original sources. I also updated the Dockerfile to compensate (hopefully) needed prerequisites. This workaround may cause yet to found unforeseen side-effects.
My modified bench may not be updated frequently so be sure to run
bench update afterward to keep the bench up to date.
DISCLAIMER : USE AT YOUR OWN RISK!
This Dockerfile build latest version of ERPNext using install.py script that fetched from ERPNext repository.
Clone this repo to your local machine and change the default password to your desired MariaDB and Administrator password in
MARIADB_PASSWORD=12345678 \ ADMIN_PASSWORD=12345678 \
leave everything else as it is and save it, then build using this command.
docker build -t erpnext .
You can pull automatic build ERPNext image from Docker Hub
docker pull lukptr/erpnext7
note: default password in this images is
12345678 you may change it later once inside container's shell.
Run using this command if you build yourself
docker run -d --name erpnext -p 80:80 erpnext
or this if you pull from Docker Hub
docker run -d --name erpnext -p 80:80 lukptr/erpnext7
Use this command to get inside container's shell
docker exec -it erpnext bash
Once inside the container's shell, you can run
bench command as usual
bench update bench migrate bench backup
bench --force restore $PWD/sites/site1.local/private/backups/database.sql.gz
MIT License (see LICENSE)
The Documentation is licensed as Creative Commons (CC-BY-SA-3.0) and the copyright is owned by Ridho Sribumi.
The brand name ERPNext and the logo are trademarks of Frappe Technologies Pvt. Ltd.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries. Docker, Inc. and other parties may also have trademark rights in other terms used herein.