Fix ChatGPT container

This container needs a writable $HOME, and will fail at startup if
there isn't one.

Provide one by pointing HOME to a path under the mounted /data
directory.
This commit is contained in:
Vladimir Panteleev 2023-01-19 01:21:14 +00:00
parent fc3012208c
commit 6c332da7d3
No known key found for this signature in database
GPG Key ID: 5004F0FAD051576D
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ ExecStart={{ devture_systemd_docker_base_host_command_docker }} run --rm --name
--network={{ matrix_docker_network }} \
--env-file={{ matrix_bot_chatgpt_config_path }}/env \
--mount type=bind,src={{ matrix_bot_chatgpt_data_path }},dst=/data \
--env HOME=/data/home \
{% for arg in matrix_bot_chatgpt_container_extra_arguments %}
{{ arg }} \
{% endfor %}