...
|
...
|
@@ -7,26 +7,21 @@ |
|
|
############################################################
|
|
|
|
|
|
#base image : ccr.ccs.tencentyun.com/yoho-base/nodejs
|
|
|
FROM ccr.ccs.tencentyun.com/yoho-base/nodejs
|
|
|
FROM ccr.ccs.tencentyun.com/yoho-base/node:10.4.1-alpine-fix
|
|
|
|
|
|
MAINTAINER jimi <jimi.ji@yoho.cn>
|
|
|
MAINTAINER tao.huang <tao.huang@yoho.cn>
|
|
|
|
|
|
ENV NODE_ENV production
|
|
|
ENV NODE_HOME /home/yoho-node-ci
|
|
|
RUN mkdir -p "$NODE_HOME"
|
|
|
ENV NODE_ENV=production \
|
|
|
NODE_HOME=/home
|
|
|
|
|
|
WORKDIR $NODE_HOME
|
|
|
RUN cd /home && \
|
|
|
mkdir -p /home/yoho-node-ci
|
|
|
|
|
|
COPY yoho-node-ci.tar.gz $NODE_HOME
|
|
|
COPY . /home/yoho-node-ci
|
|
|
|
|
|
RUN set -x \
|
|
|
&& mkdir -p /Data/logs/node/yoho-node-ci \
|
|
|
&& tar -xzf yoho-node-ci.tar.gz -C "$NODE_HOME" \
|
|
|
&& rm -rf yoho-node-ci.tar.gz
|
|
|
WORKDIR /home/yoho-node-ci
|
|
|
|
|
|
|
|
|
|
|
|
#expose port
|
|
|
EXPOSE 9000
|
|
|
|
|
|
CMD ["node","app.js"] |
|
|
\ No newline at end of file |
|
|
EXPOSE 6001
|
|
|
|
|
|
CMD ["node","/home/yoho-node-ci/app.js"] |
...
|
...
|
|