gStore/Dockerfile

37 lines
1.3 KiB
Docker
Raw Normal View History

2018-06-06 10:08:00 +08:00
#This Dockerfile is just a primitive one. We welcome optimization and simplification.
#Attention:
2018-06-06 14:29:16 +08:00
#It is best to update the process of modification in the rear of the original code(reduce the order changes).
#Otherwise the speed of construction will be influenced on a large scale.
2018-06-06 10:08:00 +08:00
#TODO: some space can be saved by using the low version of gcc mirror(e.g-gcc:5).
2018-06-06 14:29:16 +08:00
#But its mobility and dependence has not been tested yet and waiting for confirmation.
2018-06-06 10:08:00 +08:00
2018-06-04 17:35:44 +08:00
FROM gcc:8
2018-06-06 10:08:00 +08:00
#download all the optional installation library in gstore's document.
2018-06-04 17:35:44 +08:00
RUN apt-get update && apt-get install -y --no-install-recommends realpath \
ccache \
openjdk-8-jdk \
libreadline-dev \
libboost-all-dev \
&& rm -rf /var/lib/apt/lists/
COPY . /usr/src/gstore
WORKDIR /usr/src/gstore
2018-06-06 10:08:00 +08:00
#ENV CC="ccache gcc" CXX="ccache g++"? should not be choosed.
2018-06-06 14:29:16 +08:00
#Because it will trigger extremely troublesome bugs and its reason is still waiting for checking.
2018-06-06 10:08:00 +08:00
#The solution to the problem of java, whose default setting is using ansii to encode.
2018-06-04 17:35:44 +08:00
ENV LANG C.UTF-8
2018-06-06 10:08:00 +08:00
#Make compiling will be executed or replaced automatically when the container launch.
2018-06-06 14:29:16 +08:00
#notice: RUN make still has some problems now.
2018-06-06 10:08:00 +08:00
#Subsequent test version can be put here.
2018-06-06 14:29:16 +08:00
#And some procedures you need can also be attached here.
2018-06-23 16:07:05 +08:00
#CMD ["make"]
RUN make