From 37f95b25ee1649946ce2fcd4f4fb1fa89844b74a Mon Sep 17 00:00:00 2001 From: Deyao Chen Date: Sun, 22 Oct 2023 16:35:51 +0100 Subject: [PATCH] change way to add host --- Dockerfile | 3 +-- dochat.sh | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ba9ec42..9447371 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,8 +22,7 @@ COPY VERSION /VERSION.docker-wechat RUN chown user /home \ && localedef -i zh_CN -c -f UTF-8 zh_CN.UTF-8 \ - && echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers \ - && echo '127.0.0.1 dldir1.qq.com' >> /etc/hosts + && echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers USER user RUN bash -x /setup.sh diff --git a/dochat.sh b/dochat.sh index 692aff0..b7fa4dd 100755 --- a/dochat.sh +++ b/dochat.sh @@ -118,6 +118,7 @@ function main () { \ --ipc=host \ --privileged \ + --add-host dldir1.qq.com:127.0.0.1 \ \ "$DOCHAT_IMAGE_VERSION"