From fb1c0800340a87a120c154d6437a9e4c281d5755 Mon Sep 17 00:00:00 2001 From: zecka <18116930+zecka@users.noreply.github.com> Date: Sun, 6 Jul 2025 10:27:09 +0200 Subject: [PATCH] docs(readme): fix docker example to create valid save.json if missing (#12) * docs(readme): fix docker example to create valid save.json if missing Prevent runtime errors by initializing save.json with '{}' if the file does not exist before running the container. Fixes #11 * Update README.md --------- Co-authored-by: Pijus Kamandulis --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9da20da..c9c7e63 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,8 @@ There are two docker tags available: If you wan to run the application using docker, configure it using environment variables see example: ```sh -docker run --rm \ +# Ensure save.json exists so Docker volume mounts correctly +[ -f save.json ] || echo '{}' > save.json && docker run --rm \ -e COSMIUM_PERSIST=/save.json \ -v ./save.json:/save.json \ -p 8081:8081 \