Dockerfile 954 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/static-ci
RUN mkdir -p "$NODE_HOME"

#RUN set -x \
#	&& yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel -y \
#	&& yum install git-core

WORKDIR $NODE_HOME

COPY static-ci.tar.gz /home/static-ci/


RUN set -x \
	&& mkdir -p /Data/logs/node/static-ci \
	&& tar -xzvf static-ci.tar.gz -C "$NODE_HOME" \
	&& rm -rf static-ci.tar.gz
	

	
#expose port
EXPOSE 6006
	
CMD ["node","starter.js"]