Commit 9847cb4c authored by daidekun's avatar daidekun

增加设置服务器时间的组建

parent 4f2c62b9
......@@ -23,10 +23,12 @@ RUN npm install gulp
# 安装控制台组件
WORKDIR /home
RUN git clone http://192.168.3.60/QA/qg-xterm.git
WORKDIR /home/qg-xterm
RUN npm install
RUN npm run build
WORKDIR /home
# 解决中文问题
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
......@@ -36,5 +38,12 @@ ENV LC_ALL en_US.UTF-8
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Mock服务器时间
RUN https://github.com/wolfcw/libfaketime.git
WORKDIR /libfaketime/src
RUN make install
ENV LD_PRELOAD=/usr/local/lib/faketime/libfaketime.so.1
WORKDIR /home
# alias
RUN echo "export LANG='en_US.UTF-8';alias 'la=ls -al';alias rm='rm -i';alias mv='mv -i';alias grep='grep --color';alias vi='vim';alias pg='ps -ef | grep -i'" >> ~/.bashrc
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment