make_dockerfile() already shell-quoted the -i arguments in the CMD line, but
joined the files for the RUN datasette inspect line with plain spaces, so a
database called 'extra database.db' was split into two arguments and the
Docker build failed with "Path 'extra' does not exist".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Context manager with open closes the files after usage.
When the object is already a pathlib.Path i used read_text
write_text functions
In some cases pathlib.Path.open were used in context manager,
it is basically the same as builtin open.
Thanks, Konstantin Baikov!