Hi Every one,
I did my Dockerized production setup of erpnext 15 with a custom app, Where I am facing an issue with package installation on the queue.
If I run manually bench worker it’s working?
Why?
How to run the queue, remaining core app queue are all working.
Make additional os packages part of your image. If you need additional os level packages fork the frappe_docker and change the images/custom/Containerfile
to add your apt packages.
OR, create a Dockerfile
with RUN sudo apt install -y ...
with list of your packages and pass it as additional --file=/path/to/extension/Dockerfile
to build command. e.g.
docker build \
--build-arg=FRAPPE_PATH=https://github.com/frappe/frappe \
--build-arg=FRAPPE_BRANCH=version-15 \
--build-arg=PYTHON_VERSION=3.11.9 \
--build-arg=NODE_VERSION=18.20.2 \
--build-arg=APPS_JSON_BASE64=$APPS_JSON_BASE64 \
--tag=ghcr.io/user/repo/custom:1.0.0 \
--file=images/custom/Containerfile \
--file=/path/to/extension/Dockerfile .
1 Like