Given that exporting learning spaces is not a heavily used service, it is a waste to have it running on a Docker container. The best thing to do would be to migrate it to a Serverless architecture using:
https://github.com/shawnLiujianwei/puppeteer-lambda