fix: docker permission bug

This commit is contained in:
zhayujie
2023-03-26 02:00:35 +08:00
parent 4881f7b01c
commit 5aedce647f
2 changed files with 3 additions and 1 deletions

View File

@@ -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))

View File

@@ -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