mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 09:48:38 +08:00
proxy
This commit is contained in:
parent
b0ba3ae41e
commit
0c89824b94
@ -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 && \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user