This commit is contained in:
qiaofeng1227 2023-09-26 18:04:42 +08:00
parent 6217d7905a
commit dfe41c668c
2 changed files with 0 additions and 6 deletions

View file

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

View file

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