diff --git a/config.py b/config.py index f56004f..5d4e17e 100644 --- a/config.py +++ b/config.py @@ -98,6 +98,8 @@ def load_config(): config_path = "./config-template.json" config_str = read_file(config_path) + logger.info("[INIT] config str: {}".format(config_str)) + # 将json字符串反序列化为dict类型 config = Config(json.loads(config_str)) diff --git a/docker/Dockerfile.alpine b/docker/Dockerfile.alpine index 73934cc..3dee604 100644 --- a/docker/Dockerfile.alpine +++ b/docker/Dockerfile.alpine @@ -35,7 +35,7 @@ ADD ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh \ && adduser -D -h /home/noroot -u 1000 -s /bin/bash noroot \ - && chown noroot:noroot ${BUILD_PREFIX} + && chown -R noroot:noroot ${BUILD_PREFIX} USER noroot