ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ### stun搭建 ***** #### Dockerfile ``` FROM ubuntu:latest EXPOSE 3478/tcp 3478/udp USER root RUN set -ex && \ apt-get update && \ apt-get install -y build-essential && \ apt-get install -y libboost-all-dev && \ apt-get install -y libssl-dev && \ apt-get install -y g++ && \ apt-get install -y make && \ apt-get install -y git && \ apt-get clean -y && \ rm -rf /var/lib/apt/lists/* RUN cd /opt && git clone https://github.com/jselbie/stunserver.git && cd stunserver && make WORKDIR /opt/stunserver HEALTHCHECK CMD /opt/stunserver/stunclient localhost ENTRYPOINT ["/opt/stunserver/stunserver"] ``` 执行命令: ``` docker image build -t stun-server-image . docker container run -d -p 3478:3478/tcp -p 3478:3478/udp --name stun-test stun-server-image ```