Even though docker handles most of the time resources pretty well, it uses around
1 GB of storage (CODE image)
~150 MB RAM on the first document open.
~50 MB of RAM on later documents
I would suggest at least 2 GB of RAM.
Or you might hit resources exhaustion.