forked from LiXizhi/NPLRuntime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 1.1 KB
/
Copy pathDockerfile
File metadata and controls
22 lines (16 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM xuntian/ubuntu:tz
MAINTAINER xuntian "li.zq@foxmail.com"
#VOLUME ["/etc/localtime","/etc/localtime"]
RUN apt-get -y update && apt-get -y install git wget build-essential cmake libcurl4-openssl-dev \
libssl-dev libssh2-1-dev libbz2-dev freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev \
libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev && apt-get clean && rm -rf /var/lib/apt/lists/*
ADD ./ /opt/NPLRuntime
WORKDIR /opt/NPLRuntime
#RUN git submodule init && git submodule update
ARG JOBS
ARG CMAKE_BUILD_TYPE
RUN chmod +x npl_install.sh; sync; ./npl_install.sh ${JOBS:-1} ${CMAKE_BUILD_TYPE:-Release} && rm -rf /opt/NPLRuntime/bin && rm -rf /usr/local/include/boost
#RUN rm /opt/NPLRuntime/ParaWorld/bin64/liblua.so && cp /opt/NPLRuntime/ParaWorld/bin64/liblua51.so /opt/NPLRuntime/ParaWorld/bin64/liblua.so
#RUN cd /opt && git clone https://github.com/LiXizhi/NPLRuntime.git && \
# cd /opt/NPLRuntime && git submodule init && git submodule update && \
# chmod +x npl_install.sh; sync; ./npl_install.sh && rm -rf /opt/NPLRuntime/bin && rm -rf /usr/local/include/boost