mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-21 06:07:13 +08:00
fix(docker): chown /usr/local/lib in debian dockerfile
This commit is contained in:
@@ -34,7 +34,7 @@ RUN chmod +x /entrypoint.sh \
|
|||||||
&& mkdir -p /home/noroot \
|
&& mkdir -p /home/noroot \
|
||||||
&& groupadd -r noroot \
|
&& groupadd -r noroot \
|
||||||
&& useradd -r -g noroot -s /bin/bash -d /home/noroot noroot \
|
&& useradd -r -g noroot -s /bin/bash -d /home/noroot noroot \
|
||||||
&& chown -R noroot:noroot /home/noroot ${BUILD_PREFIX}
|
&& chown -R noroot:noroot /home/noroot ${BUILD_PREFIX} /usr/local/lib
|
||||||
|
|
||||||
USER noroot
|
USER noroot
|
||||||
|
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ RUN chmod +x /entrypoint.sh \
|
|||||||
&& mkdir -p /home/noroot \
|
&& mkdir -p /home/noroot \
|
||||||
&& groupadd -r noroot \
|
&& groupadd -r noroot \
|
||||||
&& useradd -r -g noroot -s /bin/bash -d /home/noroot noroot \
|
&& useradd -r -g noroot -s /bin/bash -d /home/noroot noroot \
|
||||||
&& chown -R noroot:noroot /home/noroot ${BUILD_PREFIX}
|
&& chown -R noroot:noroot /home/noroot ${BUILD_PREFIX} /usr/local/lib
|
||||||
|
|
||||||
USER noroot
|
USER noroot
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
Reference in New Issue
Block a user