Auto Sync Theme to s3 Bucket

Currently, I am using ghost as a self-hosted service.

The way is run is one kind of serverless way. Every post and picture is auto-syncing in the cloud, but the real problem is the theme is not auto-syncing into s3 bucket. As a result whenever the server restart, theme contents are missing because the volume was not persistent.

Is there any way to sync the theme folder into AWS s3 ?