Skip to content

Commit

Permalink
change way to add host
Browse files Browse the repository at this point in the history
  • Loading branch information
DE0CH committed Oct 22, 2023
1 parent b893a08 commit 37f95b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions dochat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ function main () {
\
--ipc=host \
--privileged \
--add-host dldir1.qq.com:127.0.0.1 \
\
"$DOCHAT_IMAGE_VERSION"

Expand Down

0 comments on commit 37f95b2

Please sign in to comment.