From 0c89824b9444eb05d5db27d6335a88bb81905736 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Tue, 26 Sep 2023 17:45:08 +0800 Subject: [PATCH] proxy --- docker/apphub/Dockerfile | 1 + docker/apphub/config/entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/apphub/Dockerfile b/docker/apphub/Dockerfile index 39c26537..5a1cb7d1 100644 --- a/docker/apphub/Dockerfile +++ b/docker/apphub/Dockerfile @@ -38,6 +38,7 @@ VOLUME /usr/websoft9/apphub/logs VOLUME /usr/websoft9/apphub/src/conf VOLUME /usr/websoft9/media + # Clean cache and install files RUN rm -rf apphub/docs apphub/tests library.zip plugin-appstore && \ apt clean && \ diff --git a/docker/apphub/config/entrypoint.sh b/docker/apphub/config/entrypoint.sh index cd6f5f5e..7aaca7c4 100644 --- a/docker/apphub/config/entrypoint.sh +++ b/docker/apphub/config/entrypoint.sh @@ -40,8 +40,8 @@ git config --global user.email "$password" set -e internal_ip=$(ip addr show eth0 | awk '/inet /{split($2, a, "/"); print a[1]}') -nsenter -m -u -i -n -p -t 1 sh -c "sed -i '/websoft9-apphub/d' /etc/hosts" -nsenter -m -u -i -n -p -t 1 sh -c "echo $internal_ip websoft9-apphub>> /etc/hosts" +sudo nsenter -m -u -i -n -p -t 1 sh -c "sed -i '/websoft9-apphub/d' /etc/hosts" +sudo nsenter -m -u -i -n -p -t 1 sh -c "echo $internal_ip websoft9-apphub>> /etc/hosts" # start by supervisord /usr/bin/supervisord