FROM ubuntu:16.04 MAINTAINER ARG with_satellite_code=yes RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ cmake \ libmysqlclient-dev \ libssl-dev \ libgoogle-glog-dev \ libsqlite3-dev \ sqlite3 \ uuid-dev # 拷贝文件 COPY ./3rdparty/ZLToolKit.tar.gz /root # install zltoolkit RUN cd /root/ && tar -zxvf ZLToolKit.tar.gz RUN cp -rf /root/ZLToolKit/lib/* /usr/lib/ RUN cp -rf /root/ZLToolKit/include/* /usr/include/ RUN if [ "$with_satellite_code" = "yes" ]; then \ cd /root && git clone http://120.79.157.137:80/lishengyin/Satellite.git Satellite && \ cd /root/Satellite && mkdir build && cd build &&\ cmake ..&& make -j; \ fi WORKDIR /root