JSchmie / ScrAIbe-WebUI

WebUI for ScAIbe
https://github.com/JSchmie/ScrAIbe-WebUI
GNU General Public License v3.0
19 stars 2 forks source link

Dockerfiles #6

Closed mahenning closed 5 months ago

mahenning commented 6 months ago

Adds the dockerfile, docker compose file and starting script. The script tries to copy the config.yaml into the mounted volume, if there is not a config.yaml present. When copying, comments in all lines as follows:

test:
    # this is a comment
    foo: bar

===>

## infotext
## blabla

# test:
    ## this is a comment
    # foo: bar

The config.yaml in the mounted data folder is created as root, except when there is a .env file present with

UID=[your UID]
GID=[your GID]

Also fixes some problems I encountered with empty dicts and wrong version numbering in setup.py (both probably obsolete, but doesn't break anything).

JSchmie commented 5 months ago

@mahenning please merge it on your own :)

ps. think about a CI to publish the docker file :)