浏览代码

fix(Dockerfile): create /home/noroot directory and change ownership of it

master
lanvent 1年前
父节点
当前提交
2133c1d6af
共有 3 个文件被更改,包括 5 次插入3 次删除
  1. +2
    -1
      docker/Dockerfile.debian
  2. +2
    -1
      docker/Dockerfile.latest
  3. +1
    -1
      plugins/plugin_manager.py

+ 2
- 1
docker/Dockerfile.debian 查看文件

@@ -31,9 +31,10 @@ WORKDIR ${BUILD_PREFIX}
ADD ./entrypoint.sh /entrypoint.sh

RUN chmod +x /entrypoint.sh \
&& mkdir -p /home/noroot \
&& groupadd -r noroot \
&& useradd -r -g noroot -s /bin/bash -d /home/noroot noroot \
&& chown -R noroot:noroot ${BUILD_PREFIX}
&& chown -R noroot:noroot /home/noroot ${BUILD_PREFIX}

USER noroot



+ 2
- 1
docker/Dockerfile.latest 查看文件

@@ -25,9 +25,10 @@ WORKDIR ${BUILD_PREFIX}
ADD docker/entrypoint.sh /entrypoint.sh

RUN chmod +x /entrypoint.sh \
&& mkdir -p /home/noroot \
&& groupadd -r noroot \
&& useradd -r -g noroot -s /bin/bash -d /home/noroot noroot \
&& chown -R noroot:noroot ${BUILD_PREFIX}
&& chown -R noroot:noroot /home/noroot ${BUILD_PREFIX}

USER noroot



+ 1
- 1
plugins/plugin_manager.py 查看文件

@@ -123,7 +123,7 @@ class PluginManager:
try:
instance = plugincls()
except Exception as e:
logger.error("Failed to init %s, diabled. %s" % (name, e))
logger.exception("Failed to init %s, diabled. %s" % (name, e))
self.disable_plugin(name)
failed_plugins.append(name)
continue


正在加载...
取消
保存