dockerfile_en
This commit is contained in:
parent
9efc491d85
commit
8773b3259a
27
Dockerfile
27
Dockerfile
|
@ -1,9 +1,15 @@
|
|||
#Dockerfile只是初版,欢迎优化精简。
|
||||
#注意:变动步骤尽量靠后更新(减少顺序改变),否则构建速度会受很大影响
|
||||
#TODO:低版本gcc镜像可以省下一些空间(e.g-gcc:5),但是性能&依赖未测试.待确认
|
||||
#This Dockerfile is just a primitive one. We welcome optimization and simplification.
|
||||
|
||||
#Attention:
|
||||
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.
|
||||
|
||||
#TODO: some space can be saved by using the low version of gcc mirror(e.g-gcc:5).
|
||||
But its mobility and dependence has not been tested yet and waiting for confirmation.
|
||||
|
||||
FROM gcc:8
|
||||
|
||||
#gstore文档可选安装库都装了
|
||||
#download all the optional installation library in gstore's document.
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends realpath \
|
||||
ccache \
|
||||
openjdk-8-jdk \
|
||||
|
@ -14,11 +20,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends realpath \
|
|||
COPY . /usr/src/gstore
|
||||
WORKDIR /usr/src/gstore
|
||||
|
||||
#不可选ENV CC="ccache gcc" CXX="ccache g++"? 因为会触发异常麻烦的bug,原因待查
|
||||
#解决java默认用的ansii编码问题
|
||||
#ENV CC="ccache gcc" CXX="ccache g++"? should not be choosed.
|
||||
Because it will trigger extremely troublesome bugs and its reason is still waiting for checking.
|
||||
|
||||
#The solution to the problem of java, whose default setting is using ansii to encode.
|
||||
ENV LANG C.UTF-8
|
||||
|
||||
|
||||
#容器启动时会自动执行make编译,也可自行替代。注:RUN make现在有些问题。
|
||||
#后续测试脚本可以在这抽出来?或者添加自己需要的步骤
|
||||
#Make compiling will be executed or replaced automatically when the container launch.
|
||||
notice: RUN make still has some problems now.
|
||||
|
||||
#Subsequent test version can be put here.
|
||||
And some procedures you need can also be attached here.
|
||||
CMD ["make"]
|
Loading…
Reference in New Issue