From dfe41c668cf9d8ba28f89ad0ddfbc4477a450a35 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Tue, 26 Sep 2023 18:04:42 +0800 Subject: [PATCH] apphub --- docker/apphub/Dockerfile | 2 -- docker/apphub/config/entrypoint.sh | 4 ---- 2 files changed, 6 deletions(-) diff --git a/docker/apphub/Dockerfile b/docker/apphub/Dockerfile index ae810456..5a1cb7d1 100644 --- a/docker/apphub/Dockerfile +++ b/docker/apphub/Dockerfile @@ -44,7 +44,5 @@ RUN rm -rf apphub/docs apphub/tests library.zip plugin-appstore && \ apt clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man /usr/share/doc /usr/share/doc-base -USER root - EXPOSE 8080 ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/docker/apphub/config/entrypoint.sh b/docker/apphub/config/entrypoint.sh index 7aaca7c4..e94d57e3 100644 --- a/docker/apphub/config/entrypoint.sh +++ b/docker/apphub/config/entrypoint.sh @@ -39,10 +39,6 @@ git config --global user.name "$username" git config --global user.email "$password" set -e -internal_ip=$(ip addr show eth0 | awk '/inet /{split($2, a, "/"); print a[1]}') -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 supervisorctl start all