Is it possible to setup single container Docker with just Frappe?

I searched the forum but could not find any way to setup docker with just Frappe Installed on it and nothing else.

Actually I want plain vanilla Frappe Framework setup docker where I can install my custom apps.

In the currently available docker with ERPNext preinstalled I am not able to install my custom app on it.

I enter inside the docker container using this command docker exec -it <mycontainer> sh

Now when I try to install custom app using bench install-app <my custom app> , it gives error Unknown database. After this the container seems to crash as Frappe and ERPNext stops working and in borwser we get Interanal Server Error 500

Hello @YogiYang

First:
Installing Frappe Framework only:

You can use the pwd.yml as your:

docker compose -f pwd.yml up -d

But, remove this part of line 80: --install-app erpnext

Second:
The issue with your custom App:

Was ERPNext working fine before trying to install this custom App?

Did you first run?

bench get-app

Then ran:

bench install-app

Yet, the error is strange!

 
You can try:

Run in host terminal 1:

docker logs -f <your-backend-full-container-name>

Run in host terminal 2:

docker exec -it <your-same-backend-container-full-name> bench install-app <your.custom.aoo>

Then share here the output from terminal 1 (log output). You may figure out the issue from there.

Let us know.

K