dontstarve needs a 64-bit version.
if you run the 32-bit server and use the 64-bit client, you would find you can walk on the sea, and could never save your profile in the server.
I realized this problem after several failures. You can refer to this commit to upgrade 32-bit to 64-bit, but the best practice should be to create another branch to maintain the 64-bit version.
https://github.com/VergilGao/docker-steamcmd-server/commit/7e09925ddae0db3849bcc1e4bdb854e340cd782b