Dockerfile 829 Bytes
############################################################
# Dockerfile to build hystrix + turbin Installed Containers
# Based on centos 6.7
# How to build new image: docker build -t  yoho-hystrix-qcloud .
# the hystrix alert need to post events to influxdb.yohoops.org.
# nginx version: 1.12.0
############################################################

#base image : ccr.ccs.tencentyun.com/yoho-base/nodejs
FROM ccr.ccs.tencentyun.com/yoho-base/nodejs

MAINTAINER  jimi  <jimi.ji@yoho.cn>

ENV NODE_ENV production
ENV	NODE_HOME /home/yoho-node-ci
RUN mkdir -p "$NODE_HOME"

WORKDIR $NODE_HOME

COPY yoho-node-ci.tar.gz $NODE_HOME

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



#expose port
EXPOSE 9000

CMD ["node","app.js"]