mirror of
https://github.com/pikami/cosmium.git
synced 2025-12-19 00:40:47 +00:00
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 <pikami@users.noreply.github.com>
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user