You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
816 B
31 lines
816 B
FROM ubuntu:16.04 |
|
|
|
MAINTAINER <lishengyin, 1348640163@qq.com> |
|
|
|
ARG with_satellite_code=yes |
|
|
|
RUN apt-get update && \ |
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ |
|
libmysqlclient-dev build-essential cmake make vim \ |
|
libssl-dev \ |
|
libgoogle-glog-dev \ |
|
libsqlite3-dev \ |
|
sqlite3 \ |
|
uuid-dev \ |
|
git |
|
|
|
# 拷贝文件 |
|
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 |