ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## **构建`c++`编译环境** Dockerfile文件示例 ``` FROM centos:7 RUN yum install -y net-tools \ libgomp.x86_64 \ libtool-ltdl-devel.x86_64 \ vim \ psmisc.x86_64 \ libuuid-devel.x86_64 \ zlib-devel.x86_64 \ unixODBC-devel.x86_64 \ mariadb-devel.x86_64 \ dos2unix \ cmake \ make \ gcc-4.8.5 \ gcc-c++-4.8.5 RUN ln -s /usr/lib64/libssl.so.10 /usr/lib64/libssl.so \ && ln -s /usr/lib64/libcrypto.so.10 /usr/lib64/libcrypto.so WORKDIR /home/project CMD /bin/bash ``` 执行命令创建镜像跟容器 ``` //拉去镜像 取名位c7 $ docker build -t c7 . //从c7镜像运行一个容器,取名位s1 docker run -d -it -e USER=$USRE -p 8022:22 -v /home/idzqj/:/home/project --privileged=true --name build_test build:v0 /usr/sbin/init ```